扫码关注官方订阅号
json实战 111 加载
认证高级PHP讲师
不能直接 appendChild(字符串) 裡面接受的參數是 Node ,所以要改成
appendChild(字符串)
Node
var info = document.createElement('li'); info.textContent = jsonObj.name document.getElementById("myp").appendChild(info);
微信扫码关注PHP中文网服务号
QQ扫码加入技术交流群
Copyright 2014-2026 https://www.php.cn/ All Rights Reserved | php.cn | 湘ICP备2023035733号
PHP学习
技术支持
返回顶部
不能直接
appendChild(字符串)裡面接受的參數是Node,所以要改成