随笔分类 -  前端

摘要:XML数据 <?xml version="1.0" encoding="ISO-8859-1"?> <!-- Edited by XMLSpy�--> <CATALOG> <CD> <TITLE>Empire Burlesque</TITLE> <ARTIST>Bob Dylan</ARTIST> 阅读全文
posted @ 2022-12-10 13:19 lwx_R 阅读(101) 评论(0) 推荐(0)
摘要:1. 80200,main package source size 2590KB exceed max limit 2MB 要求每个分包不能大于2MB 一般就是静态资源太大,放在服务器上即可 2.background真机调试图片不显示 把图片放到服务器上,引用服务器的图片地址,放本地不可以 或者是将 阅读全文
posted @ 2022-12-04 20:17 lwx_R 阅读(137) 评论(0) 推荐(0)
摘要:运行 npm run serve 关闭 【Ctrl】+【C】 阅读全文
posted @ 2022-12-04 18:13 lwx_R 阅读(27) 评论(0) 推荐(0)
摘要:1.安装 npm install --legacy-peer-deps vue-router@3.5.2 要指定版本号 否则会报错 2. 使用 2.1 在src下创建router目录,在其中新建index.js文件 import VueRouter from "vue-router"; //引入一个 阅读全文
posted @ 2022-12-03 12:52 lwx_R 阅读(36) 评论(0) 推荐(0)
摘要:1.使用cmd创建 1.1 管理员方式打开cmd,安装官网安装vue-cli https://cli.vuejs.org/zh/guide/installation.html 1.2 安装成功,提示无vue命令 npm config list 找到prefix 吧该路径复制此路径添加到系统变量Pat 阅读全文
posted @ 2022-12-01 19:19 lwx_R 阅读(49) 评论(0) 推荐(0)
摘要:1.安装 npm install axios <!DOCTYPE html> <html> <head> <meta charset="utf-8"> <script type="text/javascript" src="js/axios.min.js"></script> <script src 阅读全文
posted @ 2022-12-01 19:05 lwx_R 阅读(25) 评论(0) 推荐(0)
摘要:<!DOCTYPE html> <html> <head> <meta charset="utf-8"> <script src="js/vue.js" type="text/javascript" charset="utf-8"></script> <title></title> </head> 阅读全文
posted @ 2022-12-01 19:04 lwx_R 阅读(17) 评论(0) 推荐(0)
摘要:<!DOCTYPE html> <html> <head> <meta charset="utf-8"> <script src="js/vue.js" type="text/javascript" charset="utf-8"></script> <title></title> </head> 阅读全文
posted @ 2022-12-01 19:04 lwx_R 阅读(49) 评论(0) 推荐(0)
摘要:<!DOCTYPE html> <html> <head> <meta charset="utf-8" /> <title></title> </head> <body> <!-- 数据渲染 --> <div id="app"> <!-- 模板语法 --> <div> <span>{{ messag 阅读全文
posted @ 2022-12-01 18:56 lwx_R 阅读(28) 评论(0) 推荐(0)
摘要:使用fastJson <dependency> <groupId>com.alibaba</groupId> <artifactId>fastjson</artifactId> <version>1.2.28</version> </dependency> 1.get json数据 @Overrid 阅读全文
posted @ 2022-11-26 14:00 lwx_R 阅读(327) 评论(0) 推荐(0)
摘要:1.Some selectors are not allowed in component wxss, including tag name selectors 查看文档 要修改部分样式即可 阅读全文
posted @ 2022-11-22 12:38 lwx_R 阅读(294) 评论(0) 推荐(0)
摘要:文档位置 API - 数据缓存 1.本地缓存 将数据存储在本地缓存中指定的 key 中。会覆盖掉原来该 key 对应的内容。 除非用户主动删除或因存储空间原因被系统清理,否则数据都一直可用。单个 key 允许存储的最大数据长度为 1MB,所有数据存储上限为 10MB。 key:string data 阅读全文
posted @ 2022-11-07 16:54 lwx_R 阅读(76) 评论(0) 推荐(0)
摘要:var list = { "province" : province, "city" : city, "county" : county } $.ajax({ url : "postOption", type : "post", contentType : "application/json", d 阅读全文
posted @ 2022-11-03 11:05 lwx_R 阅读(31) 评论(0) 推荐(0)
摘要:1.获得选中option的值/文本 var text = $("#select option:selected").text(); var value = $("#select option:selected").val(); 阅读全文
posted @ 2022-11-03 11:03 lwx_R 阅读(51) 评论(0) 推荐(0)
摘要:1.安装vant 1.1 打开项目路径,使用 cd ../ 确保路径是整个项目路径 1.2 输入 npm i @vant/weapp -S --production 1.3 工具->构建npm 2.使用 2.1 在app.json中 "usingComponents": { "van-overlay 阅读全文
posted @ 2022-11-02 21:04 lwx_R 阅读(696) 评论(0) 推荐(0)
摘要:1.单行显示 overflow:hidden; //超出一行文字自动隐藏 text-overflow:ellipsis;//文字隐藏后添加省略号 white-space:nowrap; //强制不换行 2. 多行显示 display: -webkit-box; word-break: break-a 阅读全文
posted @ 2022-10-21 11:13 lwx_R 阅读(130) 评论(0) 推荐(0)
摘要:window.location.href = "login.html" 定时效果 3000毫秒 setTimeout(function(){ },3000); 阅读全文
posted @ 2022-10-14 19:48 lwx_R 阅读(26) 评论(0) 推荐(0)
摘要:<!DOCTYPE html> <html> <head> <meta charset="utf-8"> <title></title> </head> <body> <p>this is p</p> <button type="button">click</button> <script type 阅读全文
posted @ 2022-10-14 19:43 lwx_R 阅读(31) 评论(0) 推荐(0)
摘要:语法 /^ $/ ^ 开始标记 $ 结束标记 1.普通字符 [abc] 匹配字符串里所有abc [^abc] 匹配字符串除了abc之外的 [A-Z] 匹配A-Z之间的 . 匹配除了\n、\r之外所有 \s\S \s是匹配所有空白符,包括换行,\S 非空白符,不包括换行。 \w 匹配字母、数字、下划线 阅读全文
posted @ 2022-10-08 12:02 lwx_R 阅读(26) 评论(0) 推荐(0)
摘要:1.渲染层和逻辑层 1.1 通信模型 小程序的运行环境分成渲染层和逻辑层,其中 WXML 模板和 WXSS 样式工作在渲染层,JS 脚本工作在逻辑层。 1.2 数据驱动 WXML结构实际上等价于一棵Dom树,通过一个JS对象也可以来表达Dom树的结构 阅读全文
posted @ 2022-10-06 18:12 lwx_R 阅读(137) 评论(0) 推荐(0)