IE和火狐的不兼容之innerText和textContent
来源:互联网 发布:复共轭矩阵与厄米矩阵 编辑:程序博客网 时间:2024/04/30 10:54
我们要在html中的某个标签中自动注入值,通常我们会获得这个标签的id, 但是在IE和火狐中有点不一样!主要用法如下
var tbody = document.getElementById('id'); if(navigator.appName.indexOf("Explorer")>-1) tbody.innerText="UP0_ST "+max; else tbody.textContent="UP0_ST "+max;
0 0
- IE和火狐的不兼容之innerText和textContent
- innerText兼容火狐和IE
- innerText兼容火狐和IE
- 火狐FF和IE兼容下innerText的问题处理
- IE和火狐的不兼容
- innerText和textContent区别及浏览器兼容
- innerText和textContent
- textContent 和 innerText
- 关于innerText和textContent
- innerText和textContent区别
- innerHTML、textContent、innerText的区别和联系
- textContent和innerText属性的区别
- IE和火狐不兼容汇总
- 让IE和Firefox都支持innerText(textContent )
- 让IE和Firefox都支持innerText(textContent )
- 兼容IE 和火狐
- innerText 兼容火狐 ie浏览器
- javascript:innerText和textContent 兼容问题
- 深入理解java的finalize(转)
- Java中finalize()
- 数学之美读书笔记----设计搜索引擎的步骤
- c++ pointer array function
- 根据经纬度返回地址的url -- GoogleMap
- IE和火狐的不兼容之innerText和textContent
- Android SDK Manager国内下载缓慢的问题
- [qemu] 端口重定向
- clnt_create: RPC: Program not registered
- ascii码转换为对应的字符串
- Android中activity背景色的设置
- asp.net---ListView的简单使用
- 有一种蓝,是神往,是心醉,是心伤
- android 网络编程