02 2022 档案
摘要:在vue.config.js // module.exports = { // /** // * 此处为发行h5,微信小程序,app中删除console // * 如需显示console 需要注释此处重新运行 // */ // chainWebpack: (config) => { // // 发行
阅读全文
摘要:vue3.0 : 使用CDN引入 <script src="https//unpkg.com/vue@next"></script> 使用npm引入 npm i vue@next install = i 安装yarn npm install --global yarn yarn -v node.js
阅读全文
摘要:1.命名为 : ScreenAdapter 1920 * 1080 的 <template> <div class="ScreenAdapter" :style="style" > <slot /> </div> </template> <script> export default { name:
阅读全文
摘要:第一步:rem.js文件 function setRem() { const baseSize = 32; // 32 const scale = document.documentElement.clientWidth / 750; // 750 document.documentElement.
阅读全文
摘要:new Date( +new Date() + 8 * 3600 * 1000 ).toJSON().substr(0,19).replace("T"," ")
阅读全文