会员
周边
新闻
博问
闪存
众包
赞助商
Chat2DB
所有博客
当前博客
我的博客
我的园子
账号设置
会员中心
简洁模式
...
退出登录
注册
登录
xxxxzy
博客园
首页
新随笔
联系
订阅
管理
2015年8月12日
jquery input只允许输入数字
摘要: $('#id').keyup(function(){ var tmptxt=$(this).val().replace(/\D|^0/g,''); $(this).val(tmptxt); });
阅读全文
posted @ 2015-08-12 11:23 xxxxzy
阅读(1579)
评论(0)
推荐(0)
2015年6月25日
js 打印网页指定内容
摘要: 1 function doPrint() { 2 setTimeout(function() { 3 bdhtml=window.document.body.innerHTML; 4 sprnstr=""; 5 ...
阅读全文
posted @ 2015-06-25 11:57 xxxxzy
阅读(567)
评论(0)
推荐(0)
php 正则校验是否是域名
摘要: 1 /** 2 * @description 匹配 3 * t.cn 正确 4 * t-.cn 错误 5 * tt.cn正确 6 * -t.cn 错误 7 * ...
阅读全文
posted @ 2015-06-25 11:52 xxxxzy
阅读(5101)
评论(0)
推荐(0)
smarty模板中类似for的功能实现
摘要: 1. 功能说明,在页面使用smarty循环100次输出,类似for循环100次1 {section name=total loop=100}2 {$smarty.section.total.index+1} //当前的索引3 {$smarty.section.total.iteration} //用...
阅读全文
posted @ 2015-06-25 11:50 xxxxzy
阅读(1597)
评论(0)
推荐(0)
2015年6月24日
PHP获取上个月、下个月、本月的日期
摘要: 获取本月日期:代码如下:1 function getMonth($date){2 $firstday = date("Y-m-01",strtotime($date));3 $lastday = date("Y-m-d",strtotime("$firstday +1 month...
阅读全文
posted @ 2015-06-24 11:45 xxxxzy
阅读(13664)
评论(0)
推荐(0)
公告