05 2018 档案

摘要:目录结构: 阅读全文
posted @ 2018-05-22 23:20 web前端煜 阅读(616) 评论(0) 推荐(0)
摘要:要点: 1.<li v-for="(item,index) in arr" v-on:click="lick(item)"><!-- 第{{index+1}}张</li>遍历一个数组,拿到索引值和所对应的数据,在js中处理--> 2.<button v-on:click="next" :style= 阅读全文
posted @ 2018-05-11 15:48 web前端煜 阅读(358) 评论(0) 推荐(0)
摘要:思路: 1.先写静态的,图片显示一个其余隐藏,小圆点对应数目,这两个都是ul li标签,用于后来在js中方便获取index索引值 2.写css 3.js:封装一个换图片函数changePic(),选取index的图片显示和小圆点变蓝,其余兄弟元素移除class样式。 点击事件:获取当前元素的inde 阅读全文
posted @ 2018-05-06 15:48 web前端煜 阅读(224) 评论(0) 推荐(0)
摘要:js文件中: 1.接受数据,分割拼接处理 2.var xhr = XMLHTTPRequest() 3.判断请求类型,get or post;get 的url里有参数,post里边没有(不能被用户直接看到);里边都要写xhr.open();xhr.send(),post请求的话还要写xhr.setR 阅读全文
posted @ 2018-05-04 21:39 web前端煜 阅读(1859) 评论(0) 推荐(0)