[js 调试] FireBug Lite X v4.00 --js/Ajax 调试利器 说起FireBug,鼎鼎大名,不用我多介绍了。它本身基于BSD协议发布。 可惜FireBug是firefox的插件,在其他的浏览器就不好用了:http://www.getfirebug.com/ 还好,FireBug发布了一个Lite版本,可以在其他浏览器里面使用:http://www.getfirebug.com/lite.html,不过功能有所欠缺。 有IE7Pro的用户,给IE7Pro做了一个FireBug Lite Plus,可以在IE里面调用:htt...
by HonestQiao - Web开发 - 2008-02-24 19:51:18 阅读(5976) 回复(6)
今天帮同事调js,另外同事帮他写的,在别的页面都很没问题,就出错的这个页面很奇怪,firefox下正常,但是但ie下面就未知的运行时错误 一般这种错误都是innerHTML只读造成的,可我们是在往td里面写innerHTML,这个从来没出过问题。今次不同的也就是这个td是js生成的而已。而且有可能跟它所在的表格有些显示上的问题。 最后把几个td换成了span搞定了
/****打开页面时以窗口方式打开 function urll(u) { window.open(u,"","toolbar=0,top=50,left=130,location=0,status=0,menubar=0,scrollbars=1,resizable=0,height=450,width=510") } //--> ****/ 查看详情 //计算页面执行时间 ?> 退出时效果 控制面板帮助会员日历查看新帖 退出 /*执行此即可看到*/ var sp_isRefash = false; function window_onbeforeunload() { if(!sp_isRefash) { var...
请问[ 和 [[ 在字符串比较中有何不同之处呢? 以下的command为何结果不一样呢? [code] a="abcd" b="efgh" [ $a < $b ]&&echo AAA [ $a > $b ]&&echo AAA [/code] 结果是两种比较都是成功的,但用 [[ 就是对的! 还请高人指点迷津啊
onsubmit 作用是来防止提交错误码的值. HTML> BODY> form action="index.aspx" method="post" onsubmit="return submitTest();"> INPUT id="MyEMail" value="123@456.com">br> input type="submit" value="submit"> form> SCRIPT LANGUAGE="JavaScript"> function submitTest() { var vv = document.getElementById('MyEMail').value; if (vv.length 6) { alert('please input something.'); ret...
String.prototype.trim = function() { return this.replace(/(^\s*)|(\s*$)/g,""); } String.prototype.len= function() { return this.replace(/[^\x00-\xff]/g,"**").length; } function f_check_zh(obj){ if (/^[\u4e00-\u9fa5]+$/.test(obj.value)) { return true; } return false; } function checkFormat(){ fobj=docume...
http://www.xker.com/edu/dev/6/index_5.html 本文来自ChinaUnix博客,如果查看原文请点:http://blog.chinaunix.net/u2/75961/showart_1275316.html
js的正则表达式 //校验是否全由数字组成 代码 1. function isDigit(s) 2. { 3. var patrn=/^[0-9]{1,20}$/; 4. if (!patrn.exec(s)) return false 5. return true 6. } //校验登录名:只能输入5-20个以字母开头、可带数字、“_”、“.”的字串 代码 1. function isRegisterUserName(s) 2. { 3. var patrn=/^[a-zA-Z]{1}([a-zA-Z0-9]|[._]){4,19}$/; 4. if (!patrn.exec(s)) r...