摘要: 相关:jquery-cookiecookie 是存储于访问者的计算机中的变量,常用来存储用户名字,密码,日期.示例:1 document.cookie="username=John Doe";2 document.cookie="username=John Doe; expires=Thu, 18 ... 阅读全文
posted @ 2015-12-18 18:15 提佰萬 阅读(211) 评论(0) 推荐(0) 编辑
摘要: window.location 对象在编写时可不使用 window 这个前缀。URL : 统一资源定位符 (Uniform Resource Locator)说明:完整的URL示例:scheme://host:port/path?query#fragmentscheme:通信协议常用的http,ft... 阅读全文
posted @ 2015-12-18 10:01 提佰萬 阅读(471) 评论(0) 推荐(0) 编辑
摘要: SUBSTRING_INDEX(str,delim,count)按标识符截取指定长度的字符串1 mysql> SELECT SUBSTRING_INDEX('www.mysql.com', '.', 2);2 -> 'www.mysql'3 mysql> SELECT SUBSTRI... 阅读全文
posted @ 2015-12-17 18:18 提佰萬 阅读(286) 评论(0) 推荐(0) 编辑
摘要: Tool: Online jsonviewerJSON: JavaScript Object Notation.JSON is a syntax for storing and exchanging data.JSON ObjectsJSON objects are written inside c... 阅读全文
posted @ 2015-12-16 18:59 提佰萬 阅读(283) 评论(0) 推荐(0) 编辑
摘要: 原文地址: $(document).ready vs $(window).load vs window.onload$(document).readyWe execute our code when DOM is ready except images. 1 //call type 1 2 $(do... 阅读全文
posted @ 2015-12-16 17:28 提佰萬 阅读(466) 评论(0) 推荐(0) 编辑
摘要: HTML: ↑CSS:.top:hover{ opacity:1; transition:1s;}JS: 1 $(document).ready(function() { 2 var offset=250, // At what pixels show Back to... 阅读全文
posted @ 2015-12-15 14:22 提佰萬 阅读(228) 评论(0) 推荐(0) 编辑
摘要: html5 MDNCanvas tutorialCanvas教程canvas: 阮一峰在那山的那边海的那边有一群程序猿使用 HTML5 canvas 绘制精美的图形HTML5定稿了,为什么原生App世界将被颠覆h5 web app 阅读全文
posted @ 2015-12-15 13:16 提佰萬 阅读(179) 评论(0) 推荐(0) 编辑
摘要: repalce() 只能替换字符串中的匹配到的第一个字符或者字符串正则表达式 替换多个字符或者字符串注意:一些数字型的字符串使用replace() 时要确保是字符串,而不是数字。转换方法: str = num.toString(); str = num + "";定义正则表达式:var reg... 阅读全文
posted @ 2015-12-15 10:45 提佰萬 阅读(537) 评论(0) 推荐(0) 编辑
摘要: javascript:var textarea = document.getElementById('textarea_id');textarea.scrollTop = textarea.scrollHeight;jQuery:$(document).ready(function(){ $(... 阅读全文
posted @ 2015-12-15 10:24 提佰萬 阅读(1080) 评论(0) 推荐(0) 编辑
摘要: in the step 在第几步on the page 在页码上bracket ['brækɪt] n. 支架;括号;vt. 括在一起;把…归入同一类;brackets n. 支架;方括号;( ): parenthesis [pə'renθɪsɪs][ ] :square... 阅读全文
posted @ 2015-12-12 12:22 提佰萬 阅读(516) 评论(0) 推荐(0) 编辑
摘要: five social insurance and one housing fund 五险一金medical insurance 医疗保险unemployment insurance 失业保险deposit insurance 存款保险maternity i... 阅读全文
posted @ 2015-12-11 23:11 提佰萬 阅读(470) 评论(0) 推荐(0) 编辑
摘要: jquery代码规范Coding Standards & Best Practices中文翻译版:jquery编程的标准写法和最佳实践javascript代码规范JavaScript编码规范引爆你的Javascript代码进化前端编码规范之JavaScriptCSS 编码规范CSS编码规范编码规范b... 阅读全文
posted @ 2015-12-11 11:37 提佰萬 阅读(176) 评论(0) 推荐(0) 编辑
摘要: 金额格式化example: 1 2 3 4 5 6 7 Hello 8 27 28 result: 阅读全文
posted @ 2015-12-11 00:21 提佰萬 阅读(375) 评论(0) 推荐(0) 编辑
摘要: jQuery.isNumeric( value )Description: 判断指定参数是否是一个数字值(字符串形式的数字也符合条件),返回 true 或者 false。Example: 1 $.isNumeric( "-10" ); // true 2 $.isNumeric( 16 );... 阅读全文
posted @ 2015-12-09 18:30 提佰萬 阅读(2113) 评论(0) 推荐(0) 编辑
摘要: jQuery 遍历函数包括了用于筛选、查找和串联元素的方法。函数描述.add()将元素添加到匹配元素的集合中。.andSelf()把堆栈中之前的元素集添加到当前集合中。.children()获得匹配元素集合中每个元素的所有子元素。.closest()从元素本身开始,逐级向上级元素匹配,并返回最先匹配... 阅读全文
posted @ 2015-12-09 00:17 提佰萬 阅读(181) 评论(0) 推荐(0) 编辑
摘要: data().data( key, value ) Description:Store arbitrary data associated with the matched elements..data( key, value ).data( obj ).data( key ) Descript... 阅读全文
posted @ 2015-12-08 22:45 提佰萬 阅读(140) 评论(0) 推荐(0) 编辑
摘要: Coding Standards & Best Practices7 Reasons to use a Content Delivery NetworkCDN公共库汇总 阅读全文
posted @ 2015-12-08 00:21 提佰萬 阅读(104) 评论(0) 推荐(0) 编辑
摘要: 网站页面常用开放平台腾讯开放平台微信开放平台新浪微博开放平台FacebookforDevelopers爱奇艺开放平台百度地图开放平台 阅读全文
posted @ 2015-12-07 23:39 提佰萬 阅读(142) 评论(0) 推荐(0) 编辑
摘要: jQuery官网插件 jQuery自定义滚动条样式插件 jQuery custom content scroller examples Twitter typeahead typeahead.js typeahead.bundle.js jQuery Validation jQuery Valida 阅读全文
posted @ 2015-12-07 23:18 提佰萬 阅读(310) 评论(0) 推荐(0) 编辑
摘要: Version 1.9.0 开始不建议使用 attr() 来对具有 true 和 false 两个属性的属性进行操作。具有 true 和 false 两个属性的属性,如 checked, selected 或者 disabled 建议使用prop(),其他的使用 attr()。示例代码:1 2 3 ... 阅读全文
posted @ 2015-12-07 21:29 提佰萬 阅读(117) 评论(0) 推荐(0) 编辑