上一页 1 2 3 4 5 6 ··· 18 下一页
摘要: 客服软件live chat 阅读全文
posted @ 2014-10-31 15:52 未来动力 阅读(319) 评论(0) 推荐(0) 编辑
摘要: 1、绝对定位法(最易理解)左右两栏采用绝对定位,分别固定于页面的左右两侧,中间的主体栏用左右margin值撑开距离。于是实现了三栏自适应布局。1 html,body{margin:0; height:100%;}2 #left,#right{position:absolute; to... 阅读全文
posted @ 2014-10-31 09:10 未来动力 阅读(279) 评论(0) 推荐(0) 编辑
摘要: 先引述一段jQuery 官方对于onunload的评述:Theunloadevent is sent to thewindowelement when the user navigates away from the page. This could mean one of many things.... 阅读全文
posted @ 2014-10-30 09:19 未来动力 阅读(629) 评论(0) 推荐(0) 编辑
摘要: 1 2 1 3 2 4 3 5 6 7 8 9 10 11 12 13 link 1 window.onload = function... 阅读全文
posted @ 2014-10-30 00:32 未来动力 阅读(223) 评论(0) 推荐(0) 编辑
摘要: $ sudo npm install -g express the installation goes fine. But when I try to create a project with express as$ express myProjectI get an error saying ... 阅读全文
posted @ 2014-10-26 22:01 未来动力 阅读(169) 评论(0) 推荐(0) 编辑
摘要: 应用场景: 对于某些站点来说,可以利用这个公式来随机显示一些名人和新闻事件。 值 = Math.floor(Math.random() * 可能值的总数 + 第一个可能的值) 举例:若果想要选择一个介于 2 到 10 ( [2,10] )之间的数字。可以这样应用: var num = M... 阅读全文
posted @ 2014-10-22 09:22 未来动力 阅读(286) 评论(0) 推荐(0) 编辑
摘要: http://jasmine.github.io/1.3/introduction.html,先保留着,好好研究。 阅读全文
posted @ 2014-10-19 19:06 未来动力 阅读(81) 评论(0) 推荐(0) 编辑
摘要: 1.属性表达式属性表达式计算是发生在作用域中的。Javascript默认是以window为作用域的。AngularJS要使用window作用域的话得用$window来指向全局window对象。 比如说,你使用window中定义的alert()方法,在AngularJS表达式中必须写成$window.... 阅读全文
posted @ 2014-10-18 23:07 未来动力 阅读(208) 评论(0) 推荐(0) 编辑
摘要: 1 //比较两种方式的不同,方式二会出现抖动的bug 2 3 $(document).ready(function(e) { 4 5 //方式一 6 $('#cont').hover ( fu... 阅读全文
posted @ 2014-10-18 18:52 未来动力 阅读(775) 评论(0) 推荐(0) 编辑
摘要: var now = moment(1410181234567)var formatted = now.format('YYYY-MM-DD HH:mm:ss')console.log(formatted) 阅读全文
posted @ 2014-10-18 17:42 未来动力 阅读(117) 评论(0) 推荐(0) 编辑
上一页 1 2 3 4 5 6 ··· 18 下一页