摘要:
<!DOCTYPE html><html><head> <title></title> <script type="text/javascript"> //ES6 2018 ES9版本的一些内容 let str = '2018-08-01'; let reg1 = /(\d{4})-(\d{2})- 阅读全文
posted @ 2018-08-22 15:50
大火yzs
阅读(303)
评论(0)
推荐(0)
摘要:
<!DOCTYPE html><html><head> <title>ES6字符串</title> <script type="text/javascript"> //ES6字符串有很多方法跟java类似, //传统字符串拼接 let title='标题'; let content='内容'; le 阅读全文
posted @ 2018-08-22 15:49
大火yzs
阅读(124)
评论(0)
推荐(0)
摘要:
<!DOCTYPE html><html><head> <title>ES6类</title> <script type="text/javascript"> //传统的类 function Person(name='jack',age=18){ this.name = name; this.age 阅读全文
posted @ 2018-08-22 15:48
大火yzs
阅读(153)
评论(0)
推荐(0)
摘要:
<!DOCTYPE html><html><head> <title>ES6对象</title> <script type="text/javascript"> let name = 'jack'; let age = 18; let json={ name, //name:name, age, / 阅读全文
posted @ 2018-08-22 15:47
大火yzs
阅读(126)
评论(0)
推荐(0)
摘要:
<!DOCTYPE html><html><head> <title>ES6函数</title> <script type="text/javascript"> //ES6可以给默认值 类似python的函数 //function show(a='abc',b='bbb'){} //ES6 中扩展运 阅读全文
posted @ 2018-08-22 15:46
大火yzs
阅读(145)
评论(0)
推荐(0)
摘要:
<!DOCTYPE html><html><head> <title>es6解构</title> <script type="text/javascript"> //解构数组 //传统写法 // let a=12; // let b=5; // let c=6; // let arr=[12,5,6 阅读全文
posted @ 2018-08-22 15:43
大火yzs
阅读(137)
评论(0)
推荐(0)
摘要:
文章是学习得是写得测试代码,可以直接复制到一个html文件中自行测试学习。 阅读全文
posted @ 2018-08-22 15:42
大火yzs
阅读(361)
评论(1)
推荐(0)
摘要:
点击控制台输出 阅读全文
posted @ 2018-08-22 15:40
大火yzs
阅读(121)
评论(0)
推荐(0)
摘要:
ES6模块化开发历史 js不支持模块化一些支持模块化开发的语言ruby requirepython import ES6之前,社区制定一套模板模块化规范:Commonjs 主要用于服务器 nodejs require('http')AMD requirejs, curljsCMD sealJs 由于 阅读全文
posted @ 2018-08-22 15:32
大火yzs
阅读(218)
评论(0)
推荐(0)

浙公网安备 33010602011771号