摘要: 文件类型 下面列举一些accept的格式选择 *.3gpp audio/3gpp, video/3gpp3GPP Audio/Video *.ac3 audio/ac3AC3 Audio *.asf allpication/vnd.ms-asfAdvanced Streaming Format *. 阅读全文
posted @ 2022-07-01 09:44 朝颜浅语 阅读(369) 评论(0) 推荐(0) 编辑
摘要: Vue项目build打包/如何运行 1.对项目进行打包 // 对vue项目进行打包 npm run build 打包后会生成一个dist目录 2.安装express-generator npm i express-generator -g 3.创建express项目 express expressN 阅读全文
posted @ 2022-04-20 17:30 朝颜浅语 阅读(2971) 评论(0) 推荐(0) 编辑
摘要: Vue中Echarts使用示例 示例 1 引入echarts的三方包 npm install echarts --save 2.引入三方包(main.js) const echarts = require("echarts"); Vue.prototype.$echarts = echarts; 3 阅读全文
posted @ 2022-04-10 23:38 朝颜浅语 阅读(242) 评论(0) 推荐(0) 编辑
摘要: JavaScript对数据进行加密 1.md5方式加密 每次生成的值是一样的,一些网站可以破解,因为每次存储的都是一样的值 不可逆(法从密文推出原文) 有可能出现多个原文得到同一个密码 一种攻击方法是,攻击者记录了一张巨大的密码库,预先计算了常用密码的 hash 值,这样只需要搜索 hash 值就能 阅读全文
posted @ 2022-04-08 10:52 朝颜浅语 阅读(462) 评论(0) 推荐(0) 编辑
摘要: 关于js对象赋值 1.含有相同的键进行赋值 如: a:{name:"",age:""}, // 需要被赋值的对象 b:{name:"xx",age:"20",sex:"男"} // 数据对象 // 将b与a相同的健进行赋值 Object.keys(this.a).forEach((key) => { 阅读全文
posted @ 2022-04-08 10:20 朝颜浅语 阅读(7000) 评论(0) 推荐(1) 编辑
摘要: 登录页 触发登录事件 methods: { //触发登录事件 onSubmit() { // 如果登录成功 if (this.id 'admin' && this.password '123456') { this.$router.push('/main') //跳转页面 localStorage. 阅读全文
posted @ 2022-03-21 22:34 朝颜浅语 阅读(229) 评论(0) 推荐(0) 编辑
摘要: 1.对应的包 import { Loading } from 'element-ui' 2.data中进行声明 data() { return { loadingInstance: null, } }, 3.加入动画 this.loadingInstance = Loading.service({ 阅读全文
posted @ 2022-03-21 21:31 朝颜浅语 阅读(519) 评论(0) 推荐(0) 编辑
摘要: Vue项目中路由重复 产生如下报错 Uncaught (in promise) NavigationDuplicated: Avoided redundant navigation to current location: "/main/index". 原因:vue-router路由版本更新产生的问 阅读全文
posted @ 2022-03-08 22:40 朝颜浅语 阅读(185) 评论(0) 推荐(0) 编辑
摘要: CSS层叠样式表 三大特性 层叠性:相同的样式会覆盖 继承性:属性可向下继承 优先级:范围越小权重越高 选择器 基础选择器 标签选择器 body { color:#fff; } 类选择器 .people‐first { color:green; } id选择器 #laowang { color:ye 阅读全文
posted @ 2022-03-06 23:41 朝颜浅语 阅读(269) 评论(0) 推荐(0) 编辑
摘要: HTML 主要格式 1 <html> 2 <head> 3 </head> 4 <body> 5 </body> 6 </html> 标签语义化 推荐使用双引号 a标签 1 <a href="#空 #top跳转 http:// xxx.zip">点此跳转</a> img标签 1 <img src=" 阅读全文
posted @ 2022-03-06 23:10 朝颜浅语 阅读(22) 评论(0) 推荐(0) 编辑