摘要: var $compile = ...; // injected into your code var scope = ...; var parent = ...; // DOM element where the compiled template can be appended var html 阅读全文
posted @ 2017-06-22 13:21 DamonLv 阅读(158) 评论(0) 推荐(0) 编辑
摘要: 我用的是WebStorm11 2016的版本,个人感觉非常不错,现在整理下快捷键。 阅读全文
posted @ 2017-04-12 17:28 DamonLv 阅读(313) 评论(0) 推荐(0) 编辑
摘要: 标题 1 window.onscroll = function () { 2 3 var a = document.documentElement.scrollTop || document.body.scrollTop;//滚动条y轴上的距离 4 var ... 阅读全文
posted @ 2017-03-29 10:21 DamonLv 阅读(10438) 评论(0) 推荐(0) 编辑
摘要: URL对象是硬盘(SD卡等)指向文件的一个路径,如果我们做文件上传的时候,想在没有上传服务器端的情况下看到上传图片的效果图的时候就可是以通过var url=window.URL.createObjectURL(obj.files[0]);获得一个http格式的url路径,这个时候就可以设置到<img 阅读全文
posted @ 2017-03-29 09:26 DamonLv 阅读(8494) 评论(0) 推荐(0) 编辑
摘要: 以下是我在搭建框架时所使用的一些插件,欢迎补充! UI Bootstrap 整合了Bootstrap 一些组件功能,比较强大 UI Calendar Angular UI Grid 功能比较强大,比ngGrid功能多,处理表格数据非常有用 UI Router 必用,处理路由非常方便。 UI Uplo 阅读全文
posted @ 2017-03-28 21:16 DamonLv 阅读(376) 评论(0) 推荐(0) 编辑
摘要: 文字表现为块级元素,绝对定位,脱离基本文档流。 阅读全文
posted @ 2017-03-28 20:37 DamonLv 阅读(495) 评论(0) 推荐(0) 编辑