代码改变世界

随笔档案-2018年01月

javascript作用域与预解析

2018-01-31 13:27 by Purplez, 162 阅读, 收藏,
摘要: 一:作用域:什么时候进入作用域?1.浏览器执行 当看到script标签的时候,就会进入到js作用域2.调用一个function的时候,会进入作用域二:进入到作用域之后,发生了什么事情??step1.js预解析开辟一个空间,找有没有var,有没有方法参数,有没有function;如果有var,有方法参 阅读全文

面试题:Get 请求和Post请求有什么异同

2018-01-25 15:14 by Purplez, 376 阅读, 收藏,
摘要: ref: https://www.w3schools.com/tags/ref_httpmethods.asp The GET Method Note that the query string (name/value pairs) is sent in the URL of a GET reque 阅读全文

Html5 Svg Chapter 3

2018-01-08 17:20 by Purplez, 162 阅读, 收藏,
摘要: 《Pro HTML5 Programming》 Chapter 3 code example;在官网下载里没有找到第三章SVG的code,所以自己写了一遍,就当练习,在此处记录一下代码: 1 <!DOCTYPE html> 2 <html> 3 <title>Happy Trails in SVG< 阅读全文

StartUp:pro-html5-programming

2018-01-02 18:45 by Purplez, 127 阅读, 收藏,
摘要: 20170102 commence: https://github.com/Apress/pro-html5-programming 阅读全文