Дмитрий Варзанов Asked:2022-07-17 01:07:00 +0800 CST2022-07-17 01:07:00 +0800 CST 2022-07-17 01:07:00 +0800 CST 从对象到字符串 772 let h = {sdf:22, ff:55}; console.log(h.toString()) 可以将对象从对象原样带入行中,以便将来向该行发送请求到 php 并按原样写下来...... javascript 1 个回答 Voted Best Answer EzioMercer 2022-07-17T01:09:30+08:002022-07-17T01:09:30+08:00 可以用JSON.stringify和JSON.parse完成 let h = { sdf: 22, ff: 55 }; const asString = JSON.stringify(h); console.log(asString); const objFromString = JSON.parse(asString); console.log(objFromString);
可以用JSON.stringify和JSON.parse完成