ThinkChat2.0新版上线,更智能更精彩,支持会话、画图、阅读、搜索等,送10W Token,即刻开启你的AI之旅 广告
``` <div id=”jsonarr“>[{"title":"兄弟堂","name":"洗剪吹"},{"title":"冰川王子","name":"王向军"},{"title":"天塌啦","name":"地陷啦"}]</div> <script> var jsonarr =eval($("#nerarr").html()) //var name= jsonarr.map(function (val) { return val.name; }); var name= jsonarr.map((val,ind)=>{ return val.name; }) console.log(name.join(", ")); // 洗剪吹,王向军, 地陷啦 </script> ```