1、...
参考链接:https://www.jianshu.com/p/86cbabeda999
ES6 扩展运算符 三个点(...)
2、=>箭头
参考链接:https://blog.csdn.net/weixin_43825473/article/details/97121624
是ES 6(ECMAScript)的语法,箭头函数(arrow function)
function(x){
reuturn x+6;
}
等价于
(x)=>x+6;
或者
x=>x+6;
3、role="presentation"
参考链接:https://www.cnblogs.com/supershare/p/6082561.html
role 是增强语义性,当现有的HTML标签不能充分表达语义性的时候,就可以借助role来说明。
通常这种情况出现在一些自定义的组件上,这样可增强组件的可访问性、可用性和可交互性。
role的作用是描述一个非标准的tag的实际作用。比如用div做button,那么设置div 的 role=“button”,辅助工具就可以认出这实际上是个button。
4、scss
参考链接:https://www.sass.hk/docs/
4.1、父选择器 & (Referencing Parent Selectors: &)
4.2、 属性嵌套 (Nested Properties)
5、v-model prop value
参考链接:https://blog.csdn.net/weixin_33946605/article/details/91456162
6、$refs
参考链接:https://uniapp.dcloud.io/vue-components?id=ref
7、$nextTick
参考链接:https://cn.vuejs.org/v2/api/#vm-nextTick