摘要:
数组的几种常用方法 push() pop() shift() unshift() splice() sort() reverse() 一 push(newelement1,newelement2,....,newelementX) push() 方法可向数组的末尾添加一个或多个元素,并返回新的长度。 阅读全文
posted @ 2021-07-16 15:50
水晶草
阅读(1714)
评论(0)
推荐(0)
摘要:
` <input type=text v-on:oninput="getBirthday"/> getBirthday(idCard) { var birthday = ""; if(idCard != null && idCard != ""){ if(idCard.length == 15){ 阅读全文
posted @ 2021-07-16 11:18
水晶草
阅读(144)
评论(0)
推荐(0)
摘要:
怎么使用语言包? //第一步: npm install vue-i18n 第二步 在src文件目录下 构建 lang 语言文件夹,里面添加中文和英文,里面内容一致,  第三:新建index.js 在lang文件夹下面 import Vue from 'vue' import VueI18n fro 阅读全文
posted @ 2021-07-16 10:20
水晶草
阅读(653)
评论(0)
推荐(0)
摘要:
//a. 在函数作用域内 加var定义的变量是局部变量,不加var定义的就成了全局变量 //使用var定义 var a = 'hello World'; function bb(){ var a = 'hello Bill'; console.log(a); } bb() // 'hello Bil 阅读全文
posted @ 2021-07-16 09:14
水晶草
阅读(113)
评论(0)
推荐(0)

浙公网安备 33010602011771号