随笔分类 -  js&css

sass揭秘之@mixin,%,@function
摘要:因为文章内含有很多sass代码,如需自己动手查看编译结果,推荐使用sassmeister这款在线编译工具,方便你阅读学习。 在阅读本文章之前,请先确认你已经阅读了上篇文章sass揭秘之变量,不然会给你带来疑惑的感觉。 其实很多人之所以对sass或less感兴趣,就是因为他们能使用变量和这个@mixi 阅读全文

posted @ 2016-11-24 11:35 dhj 阅读(2605) 评论(0) 推荐(1) 编辑

禁止页面滚动
摘要:/** * (展示遮罩层时)阻止页面滚动 * @method disableScroll * @chainable */ disableScroll: function() { docElem.detach('touchmove', this._preventScroll); docElem.on( 阅读全文

posted @ 2016-03-11 11:58 dhj 阅读(310) 评论(0) 推荐(0) 编辑

vue.js学习笔记
摘要:1、 http://vuejs.org/2015/10/28/why-no-template-url/ Why Vue.js doesn't support templateURL 2、报错 Cannot read property 'parentNode' of null 把 track-by=" 阅读全文

posted @ 2015-11-25 10:30 dhj 阅读(440) 评论(0) 推荐(0) 编辑

css3伸缩布局属性总结
摘要:http://www.css88.com/book/css/properties/flex/flex-basis.htmhttp://c7sky.com/dive-into-flexbox.htmlhttp://www.css88.com/archives/5741http://caibaojian... 阅读全文

posted @ 2015-10-13 11:50 dhj 阅读(410) 评论(0) 推荐(0) 编辑

移动端WEB开发,click,touch,tap事件浅析
摘要:一、click 和 tap 比较两者都会在点击时触发,但是在手机WEB端,click会有200~300 ms,所以请用tap代替click作为点击事件。singleTap和doubleTap 分别代表单次点击和双次点击。二、关于tap的点透处理在使用zepto框架的tap来移动设备浏览器内的点击事件... 阅读全文

posted @ 2015-10-12 18:03 dhj 阅读(306) 评论(0) 推荐(0) 编辑

javascript 面向对象编程指南 的一些题目
摘要:1、function C () { this.a = 1; return false; }console.log (typeof new C());objectfunction C () { this.a = 1; return "bbb" }console.lo... 阅读全文

posted @ 2015-10-05 21:34 dhj 阅读(193) 评论(0) 推荐(0) 编辑

CSS3 display:flex和display:box有什么区别
摘要:父级元素有display:box;属性之后。他的子元素里面加上box-flex属性。可以让子元素按照父元素的宽度进行一定比例的分占空间。如:html: 01 02 03article{ width:600px; height:200px; display:-moz-box; display:-web... 阅读全文

posted @ 2015-09-30 14:59 dhj 阅读(346) 评论(0) 推荐(0) 编辑

angularjs 延迟更新和angularjsUI
摘要:options to apply to the current model. Valid keys are: 阅读全文

posted @ 2015-09-18 16:42 dhj 阅读(335) 评论(0) 推荐(0) 编辑

web app变革之rem
摘要:http://isux.tencent.com/web-app-rem.html rem这是个低调的css单位,近一两年开始崭露头角,有许多同学对rem的评价不一,有的在尝试使用,有的在使用过程中遇到坑就弃用了。但是我对rem综合评价是用来做web app它绝对是最合适的人选之一。rem是什么?r... 阅读全文

posted @ 2015-09-14 10:51 dhj 阅读(148) 评论(0) 推荐(0) 编辑

理解angularjs的作用域
摘要:Outside myDirective: {{ myProperty }} Outside myDirective: {{ myProperty }} aaa Outside myDirective: {{ myProperty }} aaa Outsid... 阅读全文

posted @ 2015-09-11 16:20 dhj 阅读(161) 评论(0) 推荐(0) 编辑

移动开发框架
摘要:移动前端开发之viewport的深入理解jingle http://vycool.com/Jingle/started.html#cometohttp://gmu.baidu.com/http://my.oschina.net/u/727843/blog/393202mac下的抓包工具Charles... 阅读全文

posted @ 2015-09-11 09:38 dhj 阅读(147) 评论(0) 推荐(0) 编辑

angularjs ng-repeat下验证问题
摘要:angularjs验证要求name唯一,repeat情况,name 等通过${index}等绑定,也无法获取值通过ng-from的方法,这样验证name重复也可以了。URLerrorhttps://docs.angularjs.org/api/ng/directive/ngFormhttp://bl... 阅读全文

posted @ 2015-08-25 09:33 dhj 阅读(139) 评论(0) 推荐(0) 编辑

angularjs自己总结
摘要:1、模块 自定的directive和controller需要在同一个model下,或者另外的model depModules他了。 ng-app要等于model的名字,所有的directive要在下面。或者是ng-app的model依赖其他的model定义指令和服务的基本模式是 var App= a... 阅读全文

posted @ 2015-08-21 15:58 dhj 阅读(132) 评论(0) 推荐(0) 编辑

vue.js学习
摘要:http://www.cnblogs.com/lhb25/p/building-interactive-web-interfaces.htmlhttp://www.yyyweb.com/ctools/demo.php?t=http%3A%2F%2Fvuejs.org%2F&h=1000&c=&n=v... 阅读全文

posted @ 2015-07-31 17:59 dhj 阅读(213) 评论(0) 推荐(1) 编辑

RequireJS
摘要:npminstall-gtnpm@2.4.0--registry=http://registry.npm.alibaba-inc.comhttp://segmentfault.com/a/1190000000492238http://www.cnblogs.com/snandy/archive/20... 阅读全文

posted @ 2015-07-24 14:10 dhj 阅读(237) 评论(0) 推荐(0) 编辑

kissy学习
摘要:http://docs.kissyui.com/1.4/docs/html/guideline/kmd.html 阅读全文

posted @ 2015-07-20 10:04 dhj 阅读(125) 评论(0) 推荐(0) 编辑

一些技术要点
摘要:java cache技术 guava tair 1、Promise 实践 http://gitlab.alibaba-inc.com/mtb/doc/issues/109#promise http://gitlab.alibaba-inc.com/mtb/doc/wikis/newbie-doc h 阅读全文

posted @ 2015-07-15 09:41 dhj 阅读(250) 评论(0) 推荐(0) 编辑

oo的一些概念
摘要:http://docs.kissyui.com/5.0/guides/base/oo.htmlJavaScript 语言自成体系,自有一套代码重用的模式,这些常见的代码重用模式可以在《Javascript 设计模式》、《JavaScript 编程模式》中找到理论基础。KISSY 即是实践了这些典型的... 阅读全文

posted @ 2015-06-22 19:37 dhj 阅读(450) 评论(0) 推荐(0) 编辑

借用构造函数继承非原型
摘要:function Article() { this.tag = ["js", "html"]; } var article = new Article(); var Blogpost = function () {}; ... 阅读全文

posted @ 2015-06-17 15:56 dhj 阅读(116) 评论(0) 推荐(0) 编辑

一些常用的代码
摘要:event.stopPropagation?event.stopPropagation():event.cancelBubble = true;//防止冒泡 event.preventDefault?event.preventDefault():event.returnValue=false... 阅读全文

posted @ 2015-05-12 15:54 dhj 阅读(147) 评论(0) 推荐(0) 编辑

导航

< 2025年3月 >
23 24 25 26 27 28 1
2 3 4 5 6 7 8
9 10 11 12 13 14 15
16 17 18 19 20 21 22
23 24 25 26 27 28 29
30 31 1 2 3 4 5
点击右上角即可分享
微信分享提示