摘要: 1.Json with Fetch API 2.异步与闭包 (1)AsyncCallback: 意义: 异步操作完成时调用的方法 语法1: 构造异步回调对象 AsyncCallback 异步回调对象名asyncCallback = new AsyncCallback(异步操作完成时调用的方法MyAs 阅读全文
posted @ 2018-12-02 16:22 hayaahan 阅读(114) 评论(0) 推荐(0) 编辑
摘要: BaiDu map 阅读全文
posted @ 2018-11-22 14:14 hayaahan 阅读(95) 评论(0) 推荐(0) 编辑
摘要: JSON实践 html代码: css代码: JS代码: JSON代码: { "squadName": "Photos Show", "active": true, "members": [{ "name": "海浪绽放", "author": "栖霞仙客", "time": "Summer", "e 阅读全文
posted @ 2018-11-18 17:38 hayaahan 阅读(89) 评论(0) 推荐(0) 编辑
摘要: 1,for each in,for in,for of的explanation和examples 一、一般的遍历数组的方法: 二、用for in的方遍历数组 三、forEach 四、用for in不仅可以对数组,也可以对enumerable对象操作 五、在ES6中,增加了一个for of循环,使用起 阅读全文
posted @ 2018-11-09 17:01 hayaahan 阅读(107) 评论(0) 推荐(0) 编辑
摘要: JavaScript模块化开发的演进历程 Brendan Eich用了10天就创造了JavaScript,因为当时的需求定位,导致了在设计之初,在语言层就不包含很多高级语言的特性,其中就包括模块这个特性,但是经过了这么多年的发展,如今对JavaScript的需求已经远远超出了Brendan Eich 阅读全文
posted @ 2018-11-03 13:52 hayaahan 阅读(122) 评论(0) 推荐(0) 编辑
摘要: 1,Specific word count: #region while (true) { Console.WriteLine("输入要查询的词语:") string word = Console.ReadLine(); string[] novelArr = File.ReadAllLines(" 阅读全文
posted @ 2018-10-28 14:25 hayaahan 阅读(122) 评论(0) 推荐(0) 编辑
摘要: DOM和BOM的source,methods,content,application DOM: (1)source:就在浏览器制造商以DOM为武器展开营销大战是,W3C(万维网联盟World Wide Web Consortium)不事声张地结合大家的优点推出了一个标准化的DOM,令人欣慰的是,Ne 阅读全文
posted @ 2018-10-20 12:54 hayaahan 阅读(111) 评论(0) 推荐(0) 编辑
摘要: sticky 和 fixed区别 fixed:固定的位置。一般用作悬浮按钮的设计。不管当前页面如何滚动,它的位置始终相对于窗体不变。元素从普通文档流中删除,并没有空间为页面中的元素创建布局。 它是相对于初始定位包含块建立的视窗,除非其祖先之一transform, perspective,或filte 阅读全文
posted @ 2018-10-12 22:09 hayaahan 阅读(84) 评论(0) 推荐(0) 编辑
摘要: CSS 颜色表示法和颜色表 阅读全文
posted @ 2018-10-12 21:56 hayaahan 阅读(87) 评论(0) 推荐(0) 编辑
摘要: CSS 单位 em and rem: are often used to create scalable layouts, which maintain the vertical rhythm of the page even when the user changes the font size. 阅读全文
posted @ 2018-10-12 21:54 hayaahan 阅读(108) 评论(0) 推荐(0) 编辑