var d = document.getElementById;
var s = d("demo").innerHTML;
alert(s); // IE 没有问题,其他浏览器必须指定上下文
var d = document.getElementById;
var s = d.call(window, "demo").innerHTML
alert(s);
相关文章
- 08-23如何在lmfit最小二乘最小化中包含我的数据错误,以及lmfit中conf_interval2d函数的这个错误是什么?
- 08-23Unity3D 一个较常见的错误信息“rect[2] == rt->GetGLWidth() && rect[3] == rt->GetGLHeight()”
- 08-23IDEA提示“错误运行Test2: 无法启动过程,工作目录D:\test2\test2不存在”
- 08-23Unity3d 错误提示 GUI Error: You are pushing more GUIClips than you are popping. Make sure they are balan
- 08-23解决“错误 D8016 “/ZI”和“/Gy-”命令行选项不兼容 ”问题
- 08-23[原]Unity3d中奇怪的编译错误
- 08-23c – 为什么在dlopen’d函数内传递std :: any的std :: any_cast会引发错误
- 08-23Open3d环境错误汇总
- 08-23c++ builder 2010 错误 F1004 Internal compiler error at 0x9740d99 with base 0x9
- 08-23Unity 3D【疑难错误】分配器溢出 (Size overflow in allocator)