摘要: Preference-User: 阅读全文
posted @ 2016-03-31 10:47 大赚佬 阅读(277) 评论(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 大赚佬 阅读(3945) 评论(0) 推荐(0)
摘要: 在.git/config 下面编辑 [core] longpaths = true 阅读全文
posted @ 2016-03-11 11:29 大赚佬 阅读(453) 评论(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 大赚佬 阅读(782) 评论(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 大赚佬 阅读(217) 评论(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 大赚佬 阅读(475) 评论(0) 推荐(0)
摘要: document.documentElement.clientWidth; document.documentElement.clientHeight;这个得到的是设备像素可见宽高,比如iPhone 4s在微信内设置了viewport为1的时候为320*416(手机480 - 微信状态栏64), i 阅读全文
posted @ 2016-02-29 10:29 大赚佬 阅读(350) 评论(0) 推荐(0)
摘要: 不生效的话,要去微信公众号平台设置JS安全域名。 阅读全文
posted @ 2016-02-25 15:59 大赚佬 阅读(2589) 评论(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 大赚佬 阅读(912) 评论(0) 推荐(0)
摘要: 原因: verifyReturn 拼接url的时候,php自动添加了url参数,而url是本不需要的,所以导致md5对比出错。 修改 alipay_notify.class.php 77行的函数 /** * 针对return_url验证消息是否是支付宝发出的合法消息 * @return 验证结果 * 阅读全文
posted @ 2016-02-01 16:03 大赚佬 阅读(562) 评论(0) 推荐(0)