smelikecat

导航

01 2016 档案

[chrome-debug]如何使用chrome调试你的移动设备
摘要:### usb debug by remote chrome ### https://developer.chrome.com/devtools/docs/remote-debugging ### chrome develop tools ### https://developers.google. 阅读全文

posted @ 2016-01-27 16:50 smelikecat 阅读(485) 评论(0) 推荐(0)

[jquery]如何实现页面单块DIV区域滚动展示
摘要:// 未实现功能的代码 1(自己写的代码) var _cur_top = $(window).scrollTop(); var num = $(".class_section").length; var wH = $(window).height... 阅读全文

posted @ 2016-01-19 09:14 smelikecat 阅读(569) 评论(0) 推荐(0)

[jquery] 遮罩弹窗,点击遮罩弹窗自动隐藏
摘要:$("#id_sign_forbidden_win .c-content").click(function(event){ event.stopPropagation(); // 阻止点击事件的冒泡 }); $("#id_sign_forbidden_win").bind("click... 阅读全文

posted @ 2016-01-13 20:17 smelikecat 阅读(436) 评论(0) 推荐(0)

[正则表达式] PHP 中使用正则表达式收集(2016/01/08 - )
摘要:// 1. 过滤字符串中src 属性为空的img 标签 $filterBack = preg_replace("/]*src\=[\'\"][\'\"][^]*>/" , "" , $str);// 。。。。 阅读全文

posted @ 2016-01-08 17:15 smelikecat 阅读(194) 评论(0) 推荐(0)

[require-js]向下滑动ajax加载的javascript实现
摘要:define(function(){ function ScrollMoreInfo($wraper , loadDataFunc , json_ids , perNum , tpl_info) { this.$wraper = $wraper; this.loadDataFunc = l... 阅读全文

posted @ 2016-01-07 15:00 smelikecat 阅读(423) 评论(0) 推荐(0)

[auto-download-app] 如何使用 javascript 实现 app 自动下载
摘要:// 在访客跳转进入的页面中,执行下面使用下面 invoke function (function(){ var str_downloadUrl = ""; var str_scheme = "hinabian://openwith"; if($.os.iphone) { ... 阅读全文

posted @ 2016-01-07 11:08 smelikecat 阅读(2693) 评论(0) 推荐(0)

[smarty] smarty 模板文件中进行字符串与变量的拼接
摘要:// smarty 模板引擎$arr_tribeLabelList["`$tribe_id`_"] 阅读全文

posted @ 2016-01-05 18:28 smelikecat 阅读(332) 评论(0) 推荐(0)

[php-cookie] cookie 请求跨域,如何共享
摘要:cookie 请求跨域的问题, 假设我有两个域名,一个 m.example.com,另一个是 www.example.com 。那么我需要如何设置 cookie 才可以在这两个域名都实现共享呢?// m.example.com & www.example.com 的根域名都是 example.com... 阅读全文

posted @ 2016-01-05 16:57 smelikecat 阅读(873) 评论(0) 推荐(0)

[php]PHP_函数收集
摘要://http://php.net/manual/en/control-structures.break.php //break ends execution of the current for, foreach, while, do-while or switch structure. //bre 阅读全文

posted @ 2016-01-05 16:23 smelikecat 阅读(177) 评论(0) 推荐(0)