上一页 1 ··· 8 9 10 11 12
摘要: http://blog.csdn.net/xuefeiliuyuxiu/article/details/78970815 阅读全文
posted @ 2018-03-01 10:48 幻城love 阅读(143) 评论(0) 推荐(0) 编辑
摘要: 本文的结构主要分为以下部分: 1.app的分类 2.每类app的定义,明确各类app具体是什么 3.各类app的优缺点 4.具体开发过程中,到底该采用哪种类型的app 1.app的分类 大致可以分为这3种: native app(原生app) web app hybrid app(混合app) 2. 阅读全文
posted @ 2018-03-01 10:25 幻城love 阅读(251) 评论(0) 推荐(0) 编辑
摘要: web移动端布局方式整理 写H5页面一直写的有点随意,只是保证了页面在各个屏幕下显示良好,却没有保证到在各个屏幕下是等比例放大或者缩小.这些天在写一些页面,试着看看能不能写出等比例放大缩小的页面,发现不容易啊,在网上找了一些文章,整理如下: (只说方案,具体实现看大神的文章) 方法一:用流式布局,p 阅读全文
posted @ 2018-03-01 10:08 幻城love 阅读(159) 评论(0) 推荐(0) 编辑
摘要: 这时候 alert(i) 里面的i还没有值,当用户调用 onclick 的匿名函数时,需要对i求值 解析程序首先会在事件处理程序内部查找,但 i 没有定义。然后,又到方法外部去查找,此时有定义,但此时的i已经循环完毕,因此,无论点哪个标签,弹出的都是最后一个标签的index。 阅读全文
posted @ 2018-02-28 15:40 幻城love 阅读(869) 评论(0) 推荐(0) 编辑
摘要: Javascript 阅读全文
posted @ 2017-11-15 14:42 幻城love 阅读(177) 评论(0) 推荐(0) 编辑
摘要: function clearEventBubble(evt){ if(evt.stopPropagation){ evt.stopPropagation(); } else{ evt.cancelBubble=true; } if(evt.preventDefault){ evt.preventDe 阅读全文
posted @ 2017-11-08 09:11 幻城love 阅读(177) 评论(0) 推荐(0) 编辑
摘要: html结构 阅读全文
posted @ 2017-11-02 12:01 幻城love 阅读(1117) 评论(0) 推荐(0) 编辑
摘要: //时间格式化Date.prototype.format = function(format) { var date = { "M+": this.getMonth() + 1, "d+": this.getDate(), "h+": this.getHours(), "m+": this.getM 阅读全文
posted @ 2017-08-14 16:14 幻城love 阅读(120) 评论(0) 推荐(0) 编辑
摘要: //初始化swiper var index=0; if(sessionStorage.getItem("index")){ index=sessionStorage.getItem("index"); } var swiper = new Swiper('.swiper-container', { 阅读全文
posted @ 2017-08-14 14:41 幻城love 阅读(185) 评论(0) 推荐(0) 编辑
摘要: 一 页面结构 <input type="file" name="image" value=" " accept="image/*" multiple /> name : 设置保存图片的属性名 value : 保存的图片 multiple: 设置这个属性可以选择多个图片 二 js代码 1 上传服务器代 阅读全文
posted @ 2017-08-01 16:14 幻城love 阅读(154) 评论(0) 推荐(0) 编辑
上一页 1 ··· 8 9 10 11 12