摘要:
1.字符串模板:用法:`${变量名}` (好像是C#6.0中也引入了类似的方法。C#中的用法:$"我是{变量名}" > $"我叫{name}" ,相当于string.Format() ) //ES6中字符串新的连接的方式 >字符串模板 let name = "小样儿", age = 18; let 阅读全文
posted @ 2018-07-01 13:46
小样儿哦
阅读(1080)
评论(0)
推荐(0)
摘要:
在ES中const关键字用来声明常量,const声明的一经定义不能修改 和let特性差不多, const a = 13; console.log(a); a = 5; //报错 View Code const定义完常量后必须赋值,后面不允许再次赋值 const aa; const b; //报错 c 阅读全文
posted @ 2018-07-01 13:20
小样儿哦
阅读(786)
评论(0)
推荐(0)