摘要: function Parent(){ this.name = "李小龙"; this.age = "30"; };Parent.prototype.lev=function(){ return this.name;}var x=Parent();alert(x.name);alert(x.lev() 阅读全文
posted @ 2018-10-02 08:57 雨夜稻草 阅读(217) 评论(0) 推荐(0) 编辑
摘要: 将svg文件转成字体图标库:https://icomoon.io/ 阅读全文
posted @ 2018-09-20 23:42 雨夜稻草 阅读(89) 评论(0) 推荐(0) 编辑
摘要: webstorm:ctrl + alt + L 阅读全文
posted @ 2018-09-20 22:45 雨夜稻草 阅读(93) 评论(0) 推荐(0) 编辑
摘要: 古埃及,天狼星升起,尼罗河泛滥,四季,太阳升起 阅读全文
posted @ 2018-09-20 21:46 雨夜稻草 阅读(136) 评论(0) 推荐(0) 编辑
摘要: 1、浮动元素居中 <div class="wrap"> <ul class="page"> <li> 上一页</li> <li>1 </li> <li>2</li> <li>3</li> <li>下一页 </li> </ul></div> .wrap { float:left; left:50%; 阅读全文
posted @ 2018-08-24 14:13 雨夜稻草 阅读(103) 评论(0) 推荐(0) 编辑
摘要: 插入Dom元素两种情况: 1.要插入的元素是从页面中获取的dom结构 ,例如:$(".item") 2.要插入的元素是通过变量存储的dom结构,例如:var html = "<div class="item"></div>" 基于上,分为 右边可以是变量: append(后内) prepend(前内 阅读全文
posted @ 2018-08-12 10:50 雨夜稻草 阅读(868) 评论(0) 推荐(0) 编辑
摘要: function add(a,b,c,d){ arguments数组 } 阅读全文
posted @ 2018-07-20 23:20 雨夜稻草 阅读(102) 评论(0) 推荐(0) 编辑
摘要: 函数声明与执行 1、具名式 声明: function add(){ } 执行:add() 2、无名式(函数表达式) 声明:var a = function () { }; 执行:a() ==> (function() { })() 阅读全文
posted @ 2018-07-20 23:19 雨夜稻草 阅读(224) 评论(0) 推荐(0) 编辑
摘要: <ion-infinite-scroll (ionInfinite)="doInfinite($event)" threshold="100px"> <ion-infinite-scroll-content loadingSpinner="bubbles" loadingText="Loading 阅读全文
posted @ 2018-07-19 22:01 雨夜稻草 阅读(145) 评论(0) 推荐(0) 编辑
摘要: 1、不传参 1)非属性跳转: constructor(public navCtrl: NavController) { } this.navCtrl.push(ArticlePage) 2)属性跳转 <button ion-button [navPush]="pushPage"></button> 阅读全文
posted @ 2018-07-19 21:15 雨夜稻草 阅读(103) 评论(0) 推荐(0) 编辑