摘要: header('Content-type: appliction/json; charset=shift-JIS'); // error //{ // "result": false, // "message": "longin", // "nextUrl": "http://xxxxx/login/" // } $data =array(); class Test { pub... 阅读全文
posted @ 2016-04-13 17:57 roseforyou 阅读(413) 评论(0) 推荐(0) 编辑
摘要: var div = document.createElement('div'); console.log(div.style.transition); //如果支持的话, 会输出 "" //如果不支持的话, 会输出 undefined. //新版本的浏览器不用判断前缀了, 老版本的浏览器还是需要判断前缀 //可参考: http://www.jb51.net/article/56412.htm ... 阅读全文
posted @ 2016-04-13 17:57 roseforyou 阅读(406) 评论(0) 推荐(0) 编辑
摘要: userid = urlencode("user".strval($x)); $test->cmt = urlencode("あああああああああああああ".strval($x)); $data[] =$test; } echo "{".'"result": true, "entrylist"'.":".urldecode(json_encode($data))."}"; ?> ... 阅读全文
posted @ 2016-04-13 17:56 roseforyou 阅读(950) 评论(0) 推荐(0) 编辑
摘要: 在这里谢谢那些无私的人~~这些内容来自这里:我只把js的链接粘到这里了~ 还有其它技术文档, 实在是太多了, 多的看都看不完!!! Google JavaScript 代码风格指南 Google JSON 风格指南 Airbnb JavaScript 规范 JavaScript 标准参考教程(alp 阅读全文
posted @ 2016-04-13 17:55 roseforyou 阅读(360) 评论(0) 推荐(0) 编辑
摘要: Demo: http://output.jsbin.com/qusikinaga还有一个很好的transform jshttp://louisremi.github.io/jquery.transform.js/index.html 阅读全文
posted @ 2016-04-13 17:53 roseforyou 阅读(331) 评论(0) 推荐(0) 编辑
摘要: 可以使用iframe-resizer项目地址: http://davidjbradshaw.github.io/iframe-resizer/演示地址: http://davidjbradshaw.com/iframe-resizer/example/ 用法:1.父页面: 引入jQuery.js 和 阅读全文
posted @ 2016-04-13 17:52 roseforyou 阅读(2199) 评论(0) 推荐(0) 编辑
摘要: $doc.on('mousewheel DOMMouseScroll',function(){ $htmlBody.stop(true); $goTop.stop(true); }); 阅读全文
posted @ 2016-04-13 17:51 roseforyou 阅读(294) 评论(0) 推荐(0) 编辑
摘要: 功能很强大:灯箱, 画廊, 放大图片, 弹出Youtube GoogleMap, ajax读取popup等等文档:http://dimsemenov.com/plugins/magnific-popup/documentation.htmlExamples:http://dimsemenov.com 阅读全文
posted @ 2016-04-13 17:50 roseforyou 阅读(1754) 评论(0) 推荐(0) 编辑
摘要: jQuery SlidesJS - Can't restart animation after clicking on navigation or pagination 在线DEMO: http://jsbin.com/cujeqekate 阅读全文
posted @ 2016-04-13 17:49 roseforyou 阅读(442) 评论(0) 推荐(0) 编辑
摘要: CSS3 @keyframes 用法:http://www.w3school.com.cn/cssref/pr_keyframes.asp 在线DEMO: http://jsbin.com/vaqicejapa 阅读全文
posted @ 2016-04-13 17:48 roseforyou 阅读(296) 评论(0) 推荐(1) 编辑
摘要: 两个js都可以用做手机的滑动框架iscroll.js功能更多flipsnap.js应该只能水平滑动. iscroll.js介绍http://iiunknown.gitbooks.io/iscroll-5-api-cn/content/versions.html flipsnap.js介绍http:/ 阅读全文
posted @ 2016-04-13 17:47 roseforyou 阅读(182) 评论(0) 推荐(0) 编辑
摘要: IE8不支持substr()函数, 第一个参数为负数,比如:var index = id.substr(-1, 1);替代:var index = id.substr(id.length-1, 1); 阅读全文
posted @ 2016-04-13 17:45 roseforyou 阅读(249) 评论(0) 推荐(0) 编辑
摘要: (!!!!以前的好用的, 现在不行了~) 做chrome扩展桌面通知, 可能不想让浏览器自动关闭某个重要的桌面通知.那就不要使用 chrome.notifications.create 可以用 Web Notifications用法: 参考:http://www.w3.org/TR/notifica 阅读全文
posted @ 2016-04-13 17:44 roseforyou 阅读(942) 评论(0) 推荐(0) 编辑
摘要: http://10minutemail.com/ 往往想临时访问某个网站, 需要用邮箱注册时, 可以试试这个网站提供的功能, 非常好用. 阅读全文
posted @ 2016-04-13 17:43 roseforyou 阅读(269) 评论(1) 推荐(0) 编辑
摘要: http://stackoverflow.com/questions/57652/how-do-i-get-javascript-to-open-a-popup-window-on-the-current-monitor 居中显示: 阅读全文
posted @ 2016-04-13 17:42 roseforyou 阅读(712) 评论(0) 推荐(0) 编辑
摘要: 1.location.reload(boolean)默认是false, 相当F5, 从客户端缓存里取当前页, true时从服务端取最新的页面.另外, android不确定是否好用, ios下应该没问题. 2.<meta http-equiv="Cache-control" content="no-c 阅读全文
posted @ 2016-04-13 17:41 roseforyou 阅读(124) 评论(0) 推荐(0) 编辑
摘要: 项目地址: https://github.com/buckwilson/Lightbox_me用法:http://buckwilson.me/lightboxme/ 阅读全文
posted @ 2016-04-13 17:31 roseforyou 阅读(451) 评论(0) 推荐(0) 编辑
摘要: 原文: http://jaspreetchahal.org/tweet-button-with-a-callback-how-to/ 两种方式:1. 原生的button 2.自定义的button 回调 callback这样写: 注意: 自定义button的href不要这样写, 因为不能触发tweet 阅读全文
posted @ 2016-04-13 17:30 roseforyou 阅读(597) 评论(0) 推荐(0) 编辑
摘要: 原文: http://jquery-howto.blogspot.jp/2009/09/get-url-parameters-values-with-jquery.html In this post, I would like to share a little jQuery code snippe 阅读全文
posted @ 2016-04-13 17:27 roseforyou 阅读(435) 评论(0) 推荐(0) 编辑
摘要: 来自网络! 阅读全文
posted @ 2016-04-13 17:26 roseforyou 阅读(183) 评论(0) 推荐(0) 编辑