摘要:
$('#id').keyup(function(){ var tmptxt=$(this).val().replace(/\D|^0/g,''); $(this).val(tmptxt); }); 阅读全文
摘要:
1 function doPrint() { 2 setTimeout(function() { 3 bdhtml=window.document.body.innerHTML; 4 sprnstr=""; 5 ... 阅读全文
摘要:
1 /** 2 * @description 匹配 3 * t.cn 正确 4 * t-.cn 错误 5 * tt.cn正确 6 * -t.cn 错误 7 * ... 阅读全文
摘要:
1. 功能说明,在页面使用smarty循环100次输出,类似for循环100次1 {section name=total loop=100}2 {$smarty.section.total.index+1} //当前的索引3 {$smarty.section.total.iteration} //用... 阅读全文
摘要:
获取本月日期:代码如下:1 function getMonth($date){2 $firstday = date("Y-m-01",strtotime($date));3 $lastday = date("Y-m-d",strtotime("$firstday +1 month... 阅读全文