摘要:
<script> let testStr = 'helloworld'; let i; let tempObj = {}; for (i = 0; i < testStr.length; i++) { let charAt = testStr.charAt(i); //相当于挨个遍历字符串字符,将字 阅读全文
摘要:
1.事件总线eventBus 创建js文件,代码如下: import Vue from "vue"; export default new Vue(); 在需要进行参数传递的页面引入js import bus from "../../assets/js/eventBus"; 在传递参数的页面 bus 阅读全文