unknown hace 2 años
padre
commit
3c11475a65
Se han modificado 1 ficheros con 1 adiciones y 1 borrados
  1. 1 1
      investment/js/investHomeChild.js

+ 1 - 1
investment/js/investHomeChild.js

@@ -46,7 +46,7 @@ let app = new Vue({
     },
     getUrlParams () {
       console.log(window.location.href)
-      let url = 'http://www.baidu.com?name=张三&age=25&sex=男&wife=小红'
+      let url = window.location.href
       // 通过 ? 分割获取后面的参数字符串
       let urlStr = url.split('?')[1]
       // 创建空对象存储参数