2014年7月31日
摘要: date.js// JavaScript Documentvar gMonths=new Array("一月","二月","三月","四月","五月","六月","七月","八月","九月","十月","十一月","十二月");var WeekDay=new Array("日","一","二",&q 阅读全文
posted @ 2014-07-31 15:39 whlives 阅读(331) 评论(0) 推荐(0)
摘要: 在编辑器或者文本框中按住数字或字母不放 当字符很长时,就会撑破页面,可以用一下方法控制字符自动换行style="word-break:break-all;" 阅读全文
posted @ 2014-07-31 15:24 whlives 阅读(172) 评论(0) 推荐(0)
摘要: UTF-8截取中文字符串 function Cn_Substr($string, $length) { preg_match_all("/[\x01-\x7f]|[\xc2-\xdf][\x80-\xbf]|\xe0[\xa0-\xbf][\x80-\xbf]|[\xe1-\xef... 阅读全文
posted @ 2014-07-31 15:21 whlives 阅读(276) 评论(0) 推荐(0)
摘要: 阅读全文
posted @ 2014-07-31 15:19 whlives 阅读(145) 评论(0) 推荐(0)
摘要: fsdfsffsdfsffsdfsffsdfsffsdfsffsdfsffsdfsffsdfsffsdfsffsdfsffsdfsffsdfsffsdfsffsdfsffsdfsffsdfsffsdfsffsdfsffsdfsffsdfsffsdfsffsdfsf 阅读全文
posted @ 2014-07-31 15:16 whlives 阅读(278) 评论(0) 推荐(0)
摘要: 代码下载 阅读全文
posted @ 2014-07-31 15:15 whlives 阅读(357) 评论(0) 推荐(0)
摘要: 代码下载 阅读全文
posted @ 2014-07-31 15:14 whlives 阅读(134) 评论(0) 推荐(0)
摘要: 代码下载 阅读全文
posted @ 2014-07-31 15:12 whlives 阅读(182) 评论(0) 推荐(0)
摘要: 有的网站中不允许用户复制、粘贴、剪切文本框中的内容的,是怎么实现的呢?看看下面的代码就知道了。 阅读全文
posted @ 2014-07-31 15:10 whlives 阅读(489) 评论(0) 推荐(0)
摘要: Math.round(Math.random()*1000+1) ;//取得1-1000的随即数 阅读全文
posted @ 2014-07-31 15:09 whlives 阅读(181) 评论(0) 推荐(0)