有没有innerHTML 的替代方案? - 黑莓浏览器上的问题
有没有innerHTML 的替代方案? - Blackberry 浏览器问题
Blackberry 4.6 浏览器似乎无法正确使用innerHTML。 它不是替换内容,而是附加内容!
function load_activities(){
x$('#dummy').xhr('program.php',{
method:'post',
data: 'action=list'.
callback: function(){
document.getElementById("status2").innerHTML = this.responseText;
}
});
Is there an alternative to innerHTML? - issue on Blackberry browser
Blackberry 4.6 browser does not seem to use innerHTML properly.
Instead of replacing contents, it appends contents!
function load_activities(){
x$('#dummy').xhr('program.php',{
method:'post',
data: 'action=list'.
callback: function(){
document.getElementById("status2").innerHTML = this.responseText;
}
});
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
克隆没有子节点的节点然后添加新内容怎么样?
我无法对此进行测试,因此我不确定
cloneNode
是否会按预期工作并且仅复制标签和属性。希望有帮助。How about cloning the node without children and then adding the new content?
I have no way to test this, so I don't know for sure that
cloneNode
will work as expected and only copy the tags and attributes. Hope it helps.