06 2021 档案
摘要:主要用的就是uni.scanCode()这个函数, 代码如下: scan1() { let that = this; // 允许从相机和相册扫码 uni.scanCode({ success: function(res) { that.result1 = res.result; } }); }, s
阅读全文
摘要:首先建立一个js文件 @/utils/rem window.onload = function() { setRem(); }; window.onreset = function() { setRem(); }; /* 设置字体rem */ function setRem() { var widt
阅读全文
摘要:文章目录 方式一:window.location 方式二:vue-router 1.this.$route的内容: (1)this.$route.fullPath: (2)this.$route.hash (3)this.$route.matched (4)this.$route.meta、this
阅读全文