摘要: 1.Network详解篇 : https://blog.csdn.net/qq_39208536/article/details/79304148 2.sources: js调试篇 http://blog.csdn.net/cyyax/article/details/51242720 sources 阅读全文
posted @ 2018-12-05 17:11 prospective 阅读(129) 评论(0) 推荐(0) 编辑
摘要: 1.实现以下需求: 输入框中输入内容,发表按钮变为蓝色背景,删除为空则变为原来的颜色 代码实现:通过判断event.target.value是否为空 2.input事件:文本输入框正在输入时生效 focus事件表示得到焦点状态 blur表示失去焦点状态,使用都是类似的,例: 阅读全文
posted @ 2018-12-05 14:48 prospective 阅读(1881) 评论(0) 推荐(0) 编辑
摘要: 1.H5提供了audio用于定义音频,支持3种文件格式:MP3、Wav、Ogg,并且有默认的样式 如:<audio controls> <source src="horse.ogg" type="audio/MP3"> audio 元素 </audio> 常用属性: src="URL" 规定音频文件 阅读全文
posted @ 2018-12-05 10:59 prospective 阅读(285) 评论(0) 推荐(0) 编辑
摘要: 方法一:使用display样式:block、none来控制文本的显示与隐藏 <div class="explain_text"> 移动互联网为企业提供了连接用户的新方式...... </div> 移动互联网为企业提供了连接用户的新方式...... <div class="show_text" sty 阅读全文
posted @ 2018-12-05 10:42 prospective 阅读(741) 评论(0) 推荐(0) 编辑
摘要: 1.验证上传文件的类型: (1)验证图片类型 <template> <el-upload class="avatar-uploader" action="https://jsonplaceholder.typicode.com/posts/" :show-file-list="false" :on- 阅读全文
posted @ 2018-12-04 20:14 prospective 阅读(1926) 评论(0) 推荐(0) 编辑
摘要: 1..css( )给指定的样式设置样式值: 2..attr(attributeName,value) /.removeAttr(attributeName);给指定的属性设置值 / 清除所有匹配的元素集合的元素: (1)改变图片的路径,可用于展示全部内容和收起两种状态时的上尖角和下尖角的变换 (2) 阅读全文
posted @ 2018-12-04 19:58 prospective 阅读(162) 评论(0) 推荐(0) 编辑
摘要: 1.可继承的样式:关于字体的所有属性都是可以继承父元素的设置 2.button按钮的默认样式去除:border:0 none; 去除按钮的边框 outline-style:none; 去除按钮的轮廓线 3.使用浮动float属性和使用定位都会将行内元素转换成行内块元素 4.除五种基本类型(strin 阅读全文
posted @ 2018-11-21 19:27 prospective 阅读(170) 评论(0) 推荐(0) 编辑
摘要: $(window).scroll(function(){ var topp = $(document).scrollTop(); var page_height = $(document).height(); var instance = page_height - topp; if(instanc 阅读全文
posted @ 2018-11-21 19:24 prospective 阅读(214) 评论(0) 推荐(0) 编辑
摘要: 1.cookies、sessionstorage、localstorage的区别? 2.什么是跨域? 跨域:只要协议、域名、端口三者有一个不同就是跨域 3.跨域的请求方法有哪些? (1)porxy代理 (2)cors (3)jsonp 4.数组去重的方法有哪些? 5.常见的请求码? 6.闭包? 7. 阅读全文
posted @ 2018-11-19 22:30 prospective 阅读(100) 评论(0) 推荐(0) 编辑
摘要: <!DOCTYPE html><html lang="en"><head> <meta charset="UTF-8"> <title>data-</title></head><body><p>h5新增属性data-的使用</p><ul id="u"> <li onclick="show(this) 阅读全文
posted @ 2018-11-03 09:03 prospective 阅读(1661) 评论(0) 推荐(0) 编辑