摘要: 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 阅读(409) 评论(0) 推荐(0)
摘要: 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 阅读(421) 评论(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 阅读(958) 评论(0) 推荐(0)
摘要: 在这里谢谢那些无私的人~~这些内容来自这里:我只把js的链接粘到这里了~ 还有其它技术文档, 实在是太多了, 多的看都看不完!!! Google JavaScript 代码风格指南 Google JSON 风格指南 Airbnb JavaScript 规范 JavaScript 标准参考教程(alp 阅读全文
posted @ 2016-04-13 17:55 roseforyou 阅读(369) 评论(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 阅读(339) 评论(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 阅读(2235) 评论(0) 推荐(0)
摘要: $doc.on('mousewheel DOMMouseScroll',function(){ $htmlBody.stop(true); $goTop.stop(true); }); 阅读全文
posted @ 2016-04-13 17:51 roseforyou 阅读(299) 评论(0) 推荐(0)
摘要: 功能很强大:灯箱, 画廊, 放大图片, 弹出Youtube GoogleMap, ajax读取popup等等文档:http://dimsemenov.com/plugins/magnific-popup/documentation.htmlExamples:http://dimsemenov.com 阅读全文
posted @ 2016-04-13 17:50 roseforyou 阅读(1795) 评论(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 阅读(453) 评论(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 阅读(327) 评论(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 阅读(190) 评论(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 阅读(257) 评论(0) 推荐(0)
摘要: (!!!!以前的好用的, 现在不行了~) 做chrome扩展桌面通知, 可能不想让浏览器自动关闭某个重要的桌面通知.那就不要使用 chrome.notifications.create 可以用 Web Notifications用法: 参考:http://www.w3.org/TR/notifica 阅读全文
posted @ 2016-04-13 17:44 roseforyou 阅读(958) 评论(0) 推荐(0)
摘要: http://10minutemail.com/ 往往想临时访问某个网站, 需要用邮箱注册时, 可以试试这个网站提供的功能, 非常好用. 阅读全文
posted @ 2016-04-13 17:43 roseforyou 阅读(290) 评论(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 阅读(737) 评论(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 阅读(131) 评论(0) 推荐(0)
摘要: 项目地址: https://github.com/buckwilson/Lightbox_me用法:http://buckwilson.me/lightboxme/ 阅读全文
posted @ 2016-04-13 17:31 roseforyou 阅读(457) 评论(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 阅读(613) 评论(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 阅读(439) 评论(0) 推荐(0)
摘要: 来自网络! 阅读全文
posted @ 2016-04-13 17:26 roseforyou 阅读(190) 评论(0) 推荐(0)
摘要: 原文是google缓存:http://webcache.googleusercontent.com/search?q=cache:MD_FP-G6RI8J:sae.sina.com.cn/%3Fm%3Ddevcenter%26catId%3D26%26content_id%3D70+&cd=2&hl 阅读全文
posted @ 2016-04-13 17:25 roseforyou 阅读(236) 评论(0) 推荐(0)
摘要: //URL: http://www.example.com/?var1=val1&var2=val2=val3&test=3&test=43&aaa=#2 //window.location.search will return "?var1=val1&var2=val2=val3&test=3&test=43&aaa=" //use the location.search, because ... 阅读全文
posted @ 2016-04-13 17:24 roseforyou 阅读(226) 评论(0) 推荐(0)
摘要: Generate birthday dates base on lunar birthdays for google calendar import Can be used for notifying birthdays using google calendar根据农历生日生成可用于谷歌日历导入的 阅读全文
posted @ 2016-04-13 17:24 roseforyou 阅读(3435) 评论(0) 推荐(0)
摘要: 使用JSON.parse需严格遵守JSON规范, 属性都需用双引号引起来, 一定是双引号!! 相反的, JSON对象转字符串: 1 JSON.stringify(value [, replacer] [, space]) 语法讲解参考: http://www.cnblogs.com/damonlan 阅读全文
posted @ 2016-04-13 17:19 roseforyou 阅读(213) 评论(0) 推荐(0)
摘要: 下面的文章可能出自一位奥地利的作者, 列出很多jQuery的插件.类似的网站:http://jquerylist.com/原文地址: http://www.kollermedia.at/archive/2007/11/21/the-ultimate-jquery-plugin-list/ jQuer 阅读全文
posted @ 2016-04-13 17:18 roseforyou 阅读(392) 评论(0) 推荐(0)
摘要: 原文地址: http://julying.com/blog/determine-the-version-number-of-ie-with-javascript/ 在原文基础上改进了一下.但有人反映在IE11下返回false! 阅读全文
posted @ 2016-04-13 17:17 roseforyou 阅读(138) 评论(0) 推荐(0)
摘要: javascript里怎么检查一个未定义的变量? in JavaScript null is an object. There's another value for things that don't exist, undefined. The DOM returns null for almos 阅读全文
posted @ 2016-04-13 17:16 roseforyou 阅读(323) 评论(0) 推荐(0)
摘要: http://stackoverflow.com/questions/832860/ 阅读全文
posted @ 2016-04-13 17:14 roseforyou 阅读(138) 评论(0) 推荐(0)
摘要: 一个非常简单实用的jQuery插件 可以用在页面的顶部广告展示 http://slidesjs.com/ 一个需要注意的问题, 就是在手机等客户端(IOS8以上), 使用此插件时, 经常会触发插件的resize事件, 如窗口固定, 可以解绑处理. 阅读全文
posted @ 2016-04-13 17:13 roseforyou 阅读(181) 评论(0) 推荐(0)
摘要: 分享一个提供各种尺寸图片的网站(Quick and simple image placeholders) http://placehold.it/ 阅读全文
posted @ 2016-04-13 17:12 roseforyou 阅读(403) 评论(0) 推荐(0)
摘要: 在线DEMO: http://output.jsbin.com/biyibukuvo 阅读全文
posted @ 2016-04-13 17:10 roseforyou 阅读(1118) 评论(0) 推荐(0)
摘要: IE使用'propertychange'事件监听,其它浏览器使用'input'事件测试了IE7-10, Chrome, FF, 输入没有问题.♥但在IE9下, 删除, 回退, Ctrl+X 没有监听到! 在线DEMO: http://output.jsbin.com/jaladafene 阅读全文
posted @ 2016-04-13 17:09 roseforyou 阅读(2932) 评论(0) 推荐(0)
摘要: Query 在线地址:https://developers.google.com/speed/libraries/devguide?hl=zh-CN#jquery此地址里还包含了很多的JS框架. 阅读全文
posted @ 2016-04-13 17:07 roseforyou 阅读(159) 评论(0) 推荐(0)
摘要: 要求:1. 页面分三部, head, content, foot, 另外有浮动的滑块2. 当前窗口处在content时, 滑块固定在最底部3. 当滚动条滑到foot出现时, 滑块固定在content的最底部4. 当滚动条往上滑动, 滑至head+滑块的高度时, 滑块固定在content的顶部 在线D 阅读全文
posted @ 2016-04-13 17:06 roseforyou 阅读(799) 评论(0) 推荐(0)
摘要: 这是一个用jQuery实现的, 自动调整textarea高度, 非常的好!但原作者已经把它的相关描述页面移除了, 这里做个备份吧~但js路径还在:full: http://james.padolsey.com/demos/plugins/jQuery/autoresize.jquery.jsmini 阅读全文
posted @ 2016-04-13 17:04 roseforyou 阅读(595) 评论(0) 推荐(0)
摘要: 在线DEMO: http://output.jsbin.com/mogufewodu 阅读全文
posted @ 2016-04-13 17:02 roseforyou 阅读(244) 评论(0) 推荐(0)
摘要: 怎样才能学好日语(转载) 如果您打算开始学习日语,但几乎还没什么基础的朋友,那您如果有兴趣可以看看这篇文章。 首先是明确自己学习日语的目的,哪怕只是为了兴趣也没关系,并制定自己的阶段计划,比如大约学半年去考4级,学1年考3级,学两年后考2级,有目标方向才能有动力,以后学习中请经常提醒自己的目标尚未实 阅读全文
posted @ 2016-04-13 17:00 roseforyou 阅读(373) 评论(0) 推荐(0)
摘要: 将图片加上 _on (这句牛, 牛在原路径有_on或者没有_on都可以)xxx_on.gif/ xxx.gif 都可以变成 xxx_on.gif 将图片去掉 _on: (_on)?(\..{3})$解释: ()成为一个表达式,?匹配0个或1个,\.就是匹配'.',.{3}其中'.'匹配任意单个字符, 阅读全文
posted @ 2016-04-13 16:59 roseforyou 阅读(1001) 评论(0) 推荐(0)
摘要: 学日语并不难,难是难在你有没有信心学好日语,有没有恒心学好日语.如果三天打鱼两天晒网的话,我劝你还是趁早死心,在语言世界里没有任何的捷径,有的只是艰辛和不懈的努力. 我自认为自己在学语言方面很有天赋,大三时就很轻松地过了英语六级.大学毕业后进了厦门一家很有实力的日资企业,又很幸运被公司选派到日本来学 阅读全文
posted @ 2016-04-13 16:58 roseforyou 阅读(638) 评论(0) 推荐(0)
摘要: 发现两篇不错的文章可以参考一下: http://blog.renren.com/blog/200083873/467545630 http://www.uedbox.com/win7-c-disk-space-solution 阅读全文
posted @ 2016-04-13 16:55 roseforyou 阅读(129) 评论(0) 推荐(0)
摘要: 是手机号的话填个 0 就OK了 阅读全文
posted @ 2016-04-13 16:53 roseforyou 阅读(1369) 评论(0) 推荐(0)
摘要: MYSQL启动报1067错误,系统日志中是“服务 mysql 意外停止” Mysql日志中则是:“Plugin 'FEDERATED' is disabled” 网我在网上找到解决方案:1、在MY.INI文件中的 [mysqld] 中增加一行tmpdir="D:/MySQL/data/"修改后,还是 阅读全文
posted @ 2016-04-13 16:36 roseforyou 阅读(633) 评论(0) 推荐(0)