10 2008 档案

摘要: 例如 document.forms[0].onsubmit=function () { if (window.document.readyState != null && window.document.readyState != 'complete') { alert("正在处理,请稍候!"); return false; } else { return true; } }关键就...阅读全文
posted @ 2008-10-20 17:52 DreamTrue 阅读(226) | 评论 (4) 编辑
摘要: 格式化function formatNumber (num, decplaces) { // convert in case it arrives as a string value num = parseFloat(num); // make sure it passes conversion if (!isNaN(num)) { // multiply value by 10 to the d...阅读全文
posted @ 2008-10-15 10:43 DreamTrue 阅读(524) | 评论 (0) 编辑
摘要: (^[0-9]{3,4}\-[0-9]{3,8}$)|(^[0-9]{3,8}$)|(^\([0-9]{3,4}\)[0-9]{3,8}$)|(^0{0,1}13[0-9]{9}$)阅读全文
posted @ 2008-10-07 09:27 DreamTrue 阅读(297) | 评论 (0) 编辑