摘要: js文件中进行计算var timestamp = Date.parse(new Date()); timestamp = timestamp / 1000; console.log(timestamp); 阅读全文
posted @ 2022-02-11 16:56 王越666 阅读(457) 评论(0) 推荐(0) 编辑
摘要: 这里以域名为例子: 这样使用的目的是用于上线后系统维护 1:微信小程序新建目录config,新建config.js文件 const config={ // 域名 baseUrl:'http://local.tp5.com/', } //导出: export {config} 2:文件进行引用 //引 阅读全文
posted @ 2022-02-11 13:29 王越666 阅读(423) 评论(0) 推荐(0) 编辑