![](https://img-blog.csdnimg.cn/20201014180756724.png?x-oss-process=image/resize,m_fixed,h_64,w_64)
html
海 洋️️
程序猿
展开
-
js中toFixed() 的用法
js中toFixed() 的用法原创 2022-04-03 20:14:46 · 1406 阅读 · 0 评论 -
map()函数的使用
1.概念map()方法定义在JavaScript的Array中,它返回一个新的数组,数组中的元素为原始数组调用函数处理后的值注意:map()不会对空数组进行检测 map()不会改变原始数组2.语法array.map(function(currentValue, index, arr), thisIndex)参数说明:function(currentValue, index, arr):必须。为一个函数,数组中的每个元素都会执行这个函数。其中函数参数:currentVal原创 2022-03-19 18:16:41 · 1109 阅读 · 0 评论 -
Vue组件的几种声明方式:Vue.extend、语法糖、script的type=“text/x-template“、template标签
Vue.extend构造器写法,,语法糖写法vue实例中挂载注册为局部组件,, script的type="text/x-template",组件模板的抽离写法,,template标签,组件模板的抽离写法原创 2022-03-03 11:57:03 · 782 阅读 · 0 评论