- 博客(2)
- 收藏
- 关注
原创 js解决URL传递中文乱码
var url = window.location.href;//得到页面的url var URL_decode = decodeURI(decodeURI(url));//对含有中文的url进行解码,注意是两次解码 console.log(paramTwo) // 打印结果 汉字传递不为乱码
2022-01-19 13:43:13 876
转载 vue动态设置路由重定向
需求为:项目分为业务系统和后台管理系统,重定向路由‘/’ 在业务系统显示为homepage,在后台管理系统首页显示为 dashboard; 实现 在router.js: importVuefrom'vue' importRouterfrom'vue-router' importLayoutfrom'../layout/index' importstorefrom'@/store' Vue.use(Router) exportconstconstantRouter...
2021-12-02 12:01:18 2452
空空如也
空空如也
TA创建的收藏夹 TA关注的收藏夹
TA关注的人