摘要: 1.indexof方法(stringObject.indexOf(String str, int fromIndex)) 方法将返回指定字符串在字符串中从指定位置开始后第一次出现的索引,或如果未找到指定子字符串,则返回-1。 2.split方法(stringObject.split(separato 阅读全文
posted @ 2022-05-09 19:45 栗栗向前冲 阅读(1116) 评论(0) 推荐(0)
摘要: 1.首先通过命令行在相关文件夹下下载vue-router(npm i vue-router),在路由文件中引入相关依赖 import { createRouter, createWebHashHistory } from "vue-router"; 2.创建路由信息对象数组: path:路径参数 c 阅读全文
posted @ 2022-05-09 19:09 栗栗向前冲 阅读(5835) 评论(0) 推荐(0)