2016年11月10日

php强制转换格式 东西不用 还真容易遗忘

摘要: mb_convert_encoding — 转换字符的编码 mb_convert_encoding — 转换字符的编码 说明 string mb_convert_encoding ( string $str , string $to_encoding [, mixed $from_encoding  阅读全文

posted @ 2016-11-10 11:36 小乔流水人家 阅读(273) 评论(0) 推荐(0) 编辑

2016年11月9日

js正则替换replace

摘要: content = "发斯蒂芬斯蒂芬434324范德萨发的发斯蒂芬2423423423"; console.log(content); var pattern = /([\u4e00-\u9fa5]|[^])+(]+>)+([\u4e00-\u9fa5]|[^])+(]+>)/g; content = content.replace(pattern,function($1){console.lo... 阅读全文

posted @ 2016-11-09 17:59 小乔流水人家 阅读(1410) 评论(0) 推荐(0) 编辑

2016年11月8日

php 处理图片并打开处理后的图片

摘要: /** * 处理二维码图片 * @param string $imgsrc 二维码路径 * @param string $imgwidth 二维码宽 * @param string $imgheight 二维码高 * @param int $time 时间戳,用户名 * @return string ... 阅读全文

posted @ 2016-11-08 15:56 小乔流水人家 阅读(605) 评论(0) 推荐(0) 编辑

2016年11月2日

JQ操作位置个人理解

摘要: position() 获取匹配元素相对父元素的偏移。 scrollTop() 无滚动条则为0 获取匹配元素相对滚动条顶部的偏移。 阅读全文

posted @ 2016-11-02 18:29 小乔流水人家 阅读(151) 评论(0) 推荐(0) 编辑

2016年11月1日

jq遍历表单元素

摘要: 直接上代码 (function($){ $.fn.serializeJson=function(){ var serializeObj={}; $(this.serializeArray()).each(function(i){ serializeObj[this.name]=this.value;... 阅读全文

posted @ 2016-11-01 14:54 小乔流水人家 阅读(739) 评论(0) 推荐(0) 编辑

2016年10月31日

js变量陷阱

摘要: js声明变量 var 是局部变量 没有var 是全局 但是有陷阱 上代码 1214Uncaught ReferenceError: d is not defined 阅读全文

posted @ 2016-10-31 12:11 小乔流水人家 阅读(142) 评论(0) 推荐(0) 编辑

2016年10月27日

Ueditor 添加插件

摘要: 代码是在 ueditor.all.js 中编辑 感觉提供的API文档有点操蛋 没有真正的可操作可显示的实例 阅读全文

posted @ 2016-10-27 17:35 小乔流水人家 阅读(635) 评论(0) 推荐(0) 编辑

2016年10月26日

this 和 self

摘要: /* 需求 var page = { a : 1, b : 2, c : { d : 3, e : 4, f : function(){ /... 阅读全文

posted @ 2016-10-26 14:38 小乔流水人家 阅读(103) 评论(0) 推荐(0) 编辑

2016年10月23日

链接按钮重复单击

摘要: 有时候手快 回多次点击某个链接按钮 从而因此不必要的问题 可以通过以下方式解决 阅读全文

posted @ 2016-10-23 10:50 小乔流水人家 阅读(110) 评论(0) 推荐(0) 编辑

2016年10月22日

关系运算符 与 函数

摘要: 程序从左往右执行 阅读全文

posted @ 2016-10-22 16:04 小乔流水人家 阅读(135) 评论(0) 推荐(0) 编辑

导航