01 2019 档案

摘要:js用XMLHttpRequest发送异步请求 发送GET请求 ~~~ var xhr = new XMLHttpRequest(); xhr.open('GET',url);//url为请求地址 xhr.responseType = 'json'; xhr.onload = function () 阅读全文
posted @ 2019-01-23 11:55 素衣居士 阅读(4031) 评论(0) 推荐(1)
摘要:记录一下 保存图片到相册 方便下次使用好找 阅读全文
posted @ 2019-01-22 17:34 素衣居士 阅读(697) 评论(0) 推荐(0)
摘要:"游戏来源于 Mdn学习网站" ; 该例子用于对象的理解非常有效(建议看完上面网站的内容在开始练习) 阅读全文
posted @ 2019-01-21 18:01 素衣居士 阅读(199) 评论(0) 推荐(0)
摘要:1.数组的长度 ~~~ var sequence = [1, 1, 2, 3, 5, 8, 13]; sequence .length //7 ~~~ 2.字符串转换成数组 string.split() ~~~ var myData = 'Manchester,London,Liverpool'; 阅读全文
posted @ 2019-01-18 10:12 素衣居士 阅读(179) 评论(1) 推荐(1)
摘要:1.字符串长度 ~~~ string.length var browserType = 'mozilla'; browserType.length; //7 ~~~ 2在字符串中查找子字符串 string.indexOf 找到返回字符串的下标,没找到返回 1 ~~~ browserType.inde 阅读全文
posted @ 2019-01-17 13:54 素衣居士 阅读(200) 评论(0) 推荐(0)
摘要:知识点 1. js 操作元素 增 (document.createElement(),document.body.appendChild()), 删(parentNode.removeChild()) ,改(guessField.disabled \= false;) 查(document.quer 阅读全文
posted @ 2019-01-16 13:39 素衣居士 阅读(1025) 评论(0) 推荐(0)