2014年7月31日
摘要: 在编辑器或者文本框中按住数字或字母不放 当字符很长时,就会撑破页面,可以用一下方法控制字符自动换行style="word-break:break-all;" 阅读全文
posted @ 2014-07-31 15:24 whlives 阅读(162) 评论(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 阅读(271) 评论(0) 推荐(0) 编辑
摘要: 阅读全文
posted @ 2014-07-31 15:19 whlives 阅读(141) 评论(0) 推荐(0) 编辑
摘要: fsdfsffsdfsffsdfsffsdfsffsdfsffsdfsffsdfsffsdfsffsdfsffsdfsffsdfsffsdfsffsdfsffsdfsffsdfsffsdfsffsdfsffsdfsffsdfsffsdfsffsdfsffsdfsf 阅读全文
posted @ 2014-07-31 15:16 whlives 阅读(274) 评论(0) 推荐(0) 编辑
摘要: 代码下载 阅读全文
posted @ 2014-07-31 15:15 whlives 阅读(351) 评论(0) 推荐(0) 编辑
摘要: 代码下载 阅读全文
posted @ 2014-07-31 15:14 whlives 阅读(125) 评论(0) 推荐(0) 编辑
摘要: 代码下载 阅读全文
posted @ 2014-07-31 15:12 whlives 阅读(176) 评论(0) 推荐(0) 编辑
摘要: 有的网站中不允许用户复制、粘贴、剪切文本框中的内容的,是怎么实现的呢?看看下面的代码就知道了。 阅读全文
posted @ 2014-07-31 15:10 whlives 阅读(477) 评论(0) 推荐(0) 编辑
摘要: Math.round(Math.random()*1000+1) ;//取得1-1000的随即数 阅读全文
posted @ 2014-07-31 15:09 whlives 阅读(170) 评论(0) 推荐(0) 编辑
摘要: 今天要用到jquery ajax 跨域调用,但是ajax是禁止跨域调用的,所以只能先在php文件使用函数取得跨域的值,然后用ajax调用本地php文件. 阅读全文
posted @ 2014-07-31 15:04 whlives 阅读(287) 评论(0) 推荐(0) 编辑