![](https://img-blog.csdnimg.cn/20201014180756925.png?x-oss-process=image/resize,m_fixed,h_64,w_64)
web
wolf0412333
半瓶水
展开
-
转载js
var errMessage=null;/** * 向一个字符串追加字符串如果为null先设成“”; */function appendStr(str,str1){ if(str==null) { str=""; str+=str1; } else { str+=原创 2008-10-20 13:05:00 · 466 阅读 · 0 评论 -
执行iframe中的javascript方法
document.getElementById("iframeId").contentWindow.functionName();原创 2008-10-21 10:43:00 · 562 阅读 · 0 评论 -
IE和Firefox(火狐)在JavaScript方面的不兼容及统一方法总结
测试代码时,发现不少IE可以运行的ajax,但在FF中报错。IE和Firefox(火狐)在JavaScript方面的不兼容及统一方法总结如下:1.兼容firefox的 outerHTML,FF中没有outerHtml的方法。if (window.HTMLElement) { HTMLElement.prototype.__defineSetter__("outerHTML",function原创 2008-10-21 16:34:00 · 456 阅读 · 0 评论