摘要: 总所周知安卓的微信是没有刷新按钮的,这对调试很不方便,效率比IOS低到不知道哪里去了。 于是想了一个歪门邪道,废话少说,其实很简单。 一句话 阅读全文
posted @ 2016-04-07 11:09 大赚佬 阅读(569) 评论(0) 推荐(0) 编辑
摘要: Preference-User: 阅读全文
posted @ 2016-03-31 10:47 大赚佬 阅读(271) 评论(0) 推荐(0) 编辑
摘要: 当你在写react的时候报了类似于这样子的错:Each child in an array or iterator should have a unique “key” prop. 原因是这样子的:React can’t know that your array is static, so you 阅读全文
posted @ 2016-03-29 19:16 大赚佬 阅读(3923) 评论(0) 推荐(0) 编辑
摘要: 在.git/config 下面编辑 [core] longpaths = true 阅读全文
posted @ 2016-03-11 11:29 大赚佬 阅读(427) 评论(0) 推荐(0) 编辑
摘要: function getQueryVariable(variable) { var query = window.location.search.substring(1); var vars = query.split("&"); for (var i=0;i<vars.length;i++) { 阅读全文
posted @ 2016-03-07 11:25 大赚佬 阅读(773) 评论(0) 推荐(0) 编辑
摘要: overflow: hidden; text-overflow: ellipsis; display: -webkit-box; -webkit-box-orient: vertical; line-height: 1.3em; -webkit-line-clamp: 2; 阅读全文
posted @ 2016-02-29 18:04 大赚佬 阅读(212) 评论(0) 推荐(0) 编辑
摘要: var u = navigator.userAgent, app = navigator.appVersion; var isAndroid = u.indexOf('Android') > -1 || u.indexOf('Linux') > -1; //android终端或者uc浏览器 var 阅读全文
posted @ 2016-02-29 10:33 大赚佬 阅读(468) 评论(0) 推荐(0) 编辑
摘要: document.documentElement.clientWidth; document.documentElement.clientHeight;这个得到的是设备像素可见宽高,比如iPhone 4s在微信内设置了viewport为1的时候为320*416(手机480 - 微信状态栏64), i 阅读全文
posted @ 2016-02-29 10:29 大赚佬 阅读(341) 评论(0) 推荐(0) 编辑
摘要: 不生效的话,要去微信公众号平台设置JS安全域名。 阅读全文
posted @ 2016-02-25 15:59 大赚佬 阅读(2568) 评论(2) 推荐(0) 编辑
摘要: <?php//演示地址 http://asizu.sinaapp.com/reptile_douban.php//数据量不是特别大,没有写抓完数据便停止。 喜欢的朋友拿去自己改改就好了 header("Content-Type:text/html;charset=utf-8"); define("M 阅读全文
posted @ 2016-02-02 14:06 大赚佬 阅读(895) 评论(0) 推荐(0) 编辑