摘要: String 对象用于处理文本(字符串)。 属性描述 constructor 对创建该对象的函数的引用 length 字符串的长度 prototype 允许您向对象添加属性和方法 String的方法: 1、anchor():创建HTML锚。 var txt = 'Hello'; txt.anchor 阅读全文
posted @ 2015-10-10 14:32 shirliey 阅读(168) 评论(0) 推荐(0) 编辑
摘要: Number 对象是原始数值的包装对象。 属性描述 constructor 返回对创建此对象的 Number 函数的引用。 MAX_VALUE 可表示的最大的数。 MIN_VALUE 可表示的最小的数。 NaN 非数字值。 NEGATIVE_INFINITY 负无穷大,溢出时返回该值。 POSITI 阅读全文
posted @ 2015-10-10 11:28 shirliey 阅读(133) 评论(0) 推荐(0) 编辑
摘要: 引入Easing js文件使用jQuery Easing$(element).slideUp({ duration: 1000, easing: method, complete: callback });参数duration:定义动画速度,时间越短,运动速度... 阅读全文
posted @ 2015-09-28 08:58 shirliey 阅读(363) 评论(0) 推荐(0) 编辑
摘要: 阻止事件冒泡html代码: 冒泡事件测试 js代码:$('table').click(function(){alert('table');});$('td').click(function(){alert('td');});$('span').click(function(e){ alert('s... 阅读全文
posted @ 2015-09-02 16:45 shirliey 阅读(420) 评论(0) 推荐(0) 编辑
摘要: js方法:网页可见区域宽:document.body.clientWidth网页可见区域高:document.body.clientHeight网页可见区域宽:document.body.offsetWidth (包括边线的宽)网页可见区域高:document.body.offsetHeight (... 阅读全文
posted @ 2015-09-02 16:41 shirliey 阅读(160) 评论(0) 推荐(0) 编辑
摘要: SEO优化1、页面关键词,每个网页应具有描述该网页内容的一组唯一的关键字。标记不应超过 874 个字符。2、页面描述,每个网页都应有一个不超过 150 个字符且能准确反映网页内容的描述标签。3、搜索引擎索引方式,robotterms是一组使用逗号(,)分割的值,通常有如下几种取值:none,noin... 阅读全文
posted @ 2015-09-02 16:36 shirliey 阅读(146) 评论(0) 推荐(0) 编辑
摘要: 1、article定义独立的内容,可以试论坛帖子、博客条目、报纸文章和用户评论 after the announcement of thenew iPhone 4 at 2、aside定义其所处内容之外的内容 after the announcement of thenew iPhone 4 a... 阅读全文
posted @ 2015-08-29 17:18 shirliey 阅读(169) 评论(0) 推荐(0) 编辑
摘要: 1、click事件:点击鼠标左键时触发 $('p').click(function(){}); 2、dbclick事件:迅速连续的两次点击时触发 $('p').dbclick(function(){}); 3、mousedown事件:按下鼠标时触发 $('p').mousedown(function 阅读全文
posted @ 2015-08-29 15:33 shirliey 阅读(447) 评论(0) 推荐(0) 编辑