01 2021 档案

摘要:https://blog.csdn.net/a736755244/article/details/104630507 阅读全文
posted @ 2021-01-29 14:13 在学习编程的lsy呀 阅读(295) 评论(0) 推荐(0)
摘要:示例地址:https://www.makeapie.com/editor.html?c=x1xfghRADz&v=2 阅读全文
posted @ 2021-01-29 14:06 在学习编程的lsy呀 阅读(248) 评论(0) 推荐(0)
摘要:var a = "/a/b/c"; alert(a.replace(new RegExp("/","gm"),"")); //换成 - var a = "/a/b/c"; alert(a.replace(new RegExp("/","gm"),"-")); 阅读全文
posted @ 2021-01-25 15:10 在学习编程的lsy呀 阅读(824) 评论(0) 推荐(0)
摘要:点击事件函数 console.log(iteminfo_object) var str= JSON.stringify(iteminfo_object); wx.navigateTo({ url: '../info/info?str='+ str , }) 接收函数 onLoad: function 阅读全文
posted @ 2021-01-22 15:17 在学习编程的lsy呀 阅读(140) 评论(0) 推荐(0)
摘要:console.log( list.find(item => item.id == 1)) 查找id=1 的对象 阅读全文
posted @ 2021-01-22 15:03 在学习编程的lsy呀 阅读(5531) 评论(0) 推荐(0)
摘要:"usingComponents": { "weekCalendar": "../../components/weekCalendar/weekCalendar" } 引用的时候 是两层 最后一层要手动写 阅读全文
posted @ 2021-01-22 11:01 在学习编程的lsy呀 阅读(6397) 评论(0) 推荐(0)
摘要:1.将项目里的“node_modules”文件夹删除 2.删除package-lock.json。 3.然后打开cmd,cd到项目目录 4.运行npm install 重新安装依赖 5.运行npm run build 打包 6.最后运行npm run dev后项目成功运行。 阅读全文
posted @ 2021-01-20 11:02 在学习编程的lsy呀 阅读(756) 评论(0) 推荐(0)
摘要:1、安装node.js(https://nodejs.org/en/)官网 2、打开微信小程序的开发工具,进入项目。在项目的根目录文件上点击右键。选择在终端中打开。 npm init。然后所有配置都按默认配置进行,只需点击回车键即可。当提示“Is this OK?<yes>”时,我们只需点击回车即可 阅读全文
posted @ 2021-01-19 10:57 在学习编程的lsy呀 阅读(927) 评论(0) 推荐(0)
摘要:const url = this.APIurl.API.api;const token = this.GLOBAL.token; this.$http({ type: "GET", url, headers: {'token': token} }).then(response => { consol 阅读全文
posted @ 2021-01-18 16:23 在学习编程的lsy呀 阅读(86) 评论(0) 推荐(0)
摘要:main.js import global_ from '../src/views/components/Global.vue'//引用文件 Vue.prototype.GLOBAL = global_; Global.vue <script> const token='12345678'; exp 阅读全文
posted @ 2021-01-18 14:28 在学习编程的lsy呀 阅读(95) 评论(0) 推荐(0)
摘要:安装 npm install vue-resource --save 引入【main.js】 // 引入vue-resource import VueResource from 'vue-resource' // 使用vue-resource Vue.use(VueResource) mounted 阅读全文
posted @ 2021-01-14 17:29 在学习编程的lsy呀 阅读(84) 评论(0) 推荐(0)
摘要:@selection-change="handleSelectionChange"多选框被选中时触发@row-click=“textRowClick” 行点击被触发 <el-table :data="textDocList" border style="width: 100%" @selection 阅读全文
posted @ 2021-01-13 15:11 在学习编程的lsy呀 阅读(1107) 评论(0) 推荐(0)
摘要:1 在样式外新增一个样式不添加scoped <style> .my{ margin: 20px; } .my .el-input__inner{ border-radius: 15px;/* 这个样式起效果 */ } </style> <style scoped> .my .el-input__in 阅读全文
posted @ 2021-01-11 10:23 在学习编程的lsy呀 阅读(135) 评论(0) 推荐(0)
摘要:<el-menu :default-active="element.active" :router="element.router" > <el-menu-item style="margin-left: 150px;" index="/index">首页</el-menu-item> <el-me 阅读全文
posted @ 2021-01-11 09:00 在学习编程的lsy呀 阅读(46) 评论(0) 推荐(0)
摘要:charAt()var str="hellow";str.charAt(1)返回的值是e toUpperCase()var str="helloow";str.toUpperCase()返回的值是HELLOOW 阅读全文
posted @ 2021-01-07 15:24 在学习编程的lsy呀 阅读(175) 评论(0) 推荐(0)
摘要:split(): 方法用于把一个字符串分割成字符串数组。reverse(): 方法用于颠倒数组中元素的顺序。join() :方法也就是把数组中的所有元素以字符串的形式输出 例子 输入 'Hello Vue.js!' 输出 '!sj.euV olleH' 阅读全文
posted @ 2021-01-07 14:31 在学习编程的lsy呀 阅读(1374) 评论(0) 推荐(0)
摘要:1、解决页面堵塞的问题 如果放在开头要加载完js文件之后才有能成功页面跳转,当js比较大时(从服务器下载下来比较慢)这时候就会有页面堵塞问题,就是迟钝一会才进行页面跳转。 2、无法获取对象的情况 js里面有一些获取对象的函数,但是如果js放在开头,DOM元素还没加载,js就会出现无法获取对象的情况, 阅读全文
posted @ 2021-01-02 23:16 在学习编程的lsy呀 阅读(553) 评论(0) 推荐(0)
摘要:解决页面首次加载空白问题,因为是按顺序加载,如果css文件放在最后,先把DOM元素加载了才加载css,就会出现暂时空白的问题 阅读全文
posted @ 2021-01-02 23:10 在学习编程的lsy呀 阅读(246) 评论(0) 推荐(0)
摘要:1 git branch --list 查看分支列表 2 git branch dev 新建dev分支 3 git checkout dev 进入分支 4 git push 更新仓库 也可新建并进入分支 一行命令 2和3合并 git checkout -b dev 备注 分支名称可以设置为版本号 阅读全文
posted @ 2021-01-02 19:22 在学习编程的lsy呀 阅读(276) 评论(0) 推荐(0)