02 2025 档案
摘要:场景描述: vue开发H5页面过程中,需要用到加密解密接口,以及一系列反向代理配置。配置文件一般为——vue.config.js ; 如下: const path = require('path'); let zipName = 'sdbf-h5'; module.exports = { css:
阅读全文
摘要:场景描述:使用uniapp框架开发H5页面时,打包项目报错——Deprecation Warning: The legacy JS API is deprecated and will be removed in Dart Sass 2.0.0. 全局搜索Sass,检查后发现,package配置文件
阅读全文
摘要:要求:根据访问者访问不同的后缀链接,展示不同的页面; html: <div class="tab-content" id="assist"> <h1>比分计算器</h1> <div class="item-list"> <!-- 动态生成的项目列表 --> </div> </div> <div cl
阅读全文
摘要:function getPhoneModel($rowA['phone_model']){ // Iphone版本对照 if (preg_match('/iPhone1,1/',$rowA['phone_model'])) { $rowA['phone_model'] ="iPhone-2G";}
阅读全文
摘要:要求:根据用户安装App后,返回的设备型号,判断iPhone版本 实现代码: function getModelValue(last_model) { // 如果last_model不包含"iPhone",则直接返回原值 if (!last_model.includes('iPhone')) { r
阅读全文