![](https://img-blog.csdnimg.cn/20201014180756738.png?x-oss-process=image/resize,m_fixed,h_64,w_64)
前端
文章平均质量分 80
junlin_tu
这个作者很懒,什么都没留下…
展开
-
常用js函数
function isEmpty(obj) { for (var name in obj) { if(obj.hasOwnProperty(name)) return false; } return true;};//获取url参数var geturlparam=function(name原创 2016-04-05 15:08:11 · 309 阅读 · 0 评论 -
javascript要点
// PrimaryStudent构造函数:function PrimaryStudent(props) { Student.call(this, props); this.grade = props.grade || 1;}// 空函数F:function F() {}// 把F的原型指向Student.prototype:F.prototype = Stude转载 2016-05-05 15:48:04 · 546 阅读 · 0 评论 -
CSS
.opacity50 {-webkit-opacity: 0.5; -moz-opacity: 0.5; -khtml-opacity: 0.5; opacity: 0.5; filter: alpha(opacity=50); -ms-filter: "progid:DXImageTransform.Microsoft原创 2016-04-05 15:06:10 · 723 阅读 · 0 评论 -
Browser
对于DOM结构中的各个元素都有自己的盒子(模型),这些都需要浏览器根据各种样式(浏览器的、开发人员定义的等)来计算并根据计算结果将元素放到它该出现的位置,这个过程称之为reflow;当各种盒子的位置、大小以及其他属性,例如颜色、字体大小等都确定下来后,浏览器于是便把这些元素都按照各自的特性绘制了一遍,于是页面的内容出现了,这个过程称之为repaint。DOM元素的添加、修改(内容)、删转载 2016-05-20 09:39:06 · 367 阅读 · 0 评论 -
angular
$emit,$broadcast,$on的用法 ng-controller="ParentCtrl as parent" class="ng-scope"> {{ parent.data }} ng-controller="SiblingOneCtrl as sib1" class="ng-scope"> {{ sib1.data }} app.controller原创 2016-05-06 10:26:55 · 707 阅读 · 2 评论 -
git 常用命令
git提交git rm (删除运作加入了暂存区)git add -u (将本地有改动包括修改和删除的文件标记到暂存区)git提交日志git log --oneline --decorate(旁边显示该提交关联的引用里程碑或分支)git log --diff-filter=D --summary # all deleted files evergit log --diff-filter=D --summary . # all dele原创 2016-04-05 14:46:54 · 460 阅读 · 0 评论 -
ps操作
1.新增图层2.Ctrl+Delete填充一个深颜色3.回到原图层4.w魔棒工具,点击要选择的区域5.再新建一个图层,给选择的区域Ctrl+Delete填充一个想要的颜色原创 2016-04-08 16:08:15 · 326 阅读 · 0 评论 -
font-family
// System Font // https://www.webkit.org/blog/3709/using-the-system-font-in-web-content/-apple-system, // OSX ^10.11 & iOS ^9 San Francisco & 苹方// English First"Helvet转载 2016-04-14 17:33:15 · 3138 阅读 · 0 评论 -
angularjs 支持IE7
window.myCustomTags = ['chooseli','paging','timeline','timeline-node','timeline-badge','timeline-panel','timeline-heading','timeline-title','timeline-content']; document.createElement('paging原创 2016-04-11 16:07:34 · 1137 阅读 · 0 评论 -
javascript高级程序设计——笔记
javascript高级程序设计——笔记基本概念基本数据类型包括Undefined/Null/Boolean/Number和String无须指定函数的返回值,实际上,未指定返回值的函数返回的是一个特殊的undefined值变量、作用域和内存问题基本类型值在内存中占据固定大小的空间,因此保存在栈内存中引用类型的值是对象,保存在堆内存中确定一个值是哪种基本类型用typeof,确定一个值是哪种原创 2016-09-19 18:04:11 · 1663 阅读 · 0 评论