摘要: 1.html <template> <div class="step_box"> <div class="step_item"> <!-- 使用绑定动态的 class来让样式关联起来 --> <div @click="stpeBtn(index)" class="step_item_box" v-f 阅读全文
posted @ 2022-03-30 15:10 热爱前端的5号机器 阅读(1789) 评论(0) 推荐(0) 编辑
摘要: 1.style部分 <style> * { margin: 0; padding: 0; box-sizing: border-box; } body, html { width: 100%; height: 100%; } .box { height: 100%; display: flex; j 阅读全文
posted @ 2022-03-30 14:14 热爱前端的5号机器 阅读(924) 评论(0) 推荐(0) 编辑
摘要: 1.引入依赖 yarn add @amap/amap-vue # 或 npm install --save @amap/amap-vue 2.在main.js里引入 import AmapVue from '@amap/amap-vue'; AmapVue.config.version = '2.0 阅读全文
posted @ 2022-03-29 16:30 热爱前端的5号机器 阅读(783) 评论(0) 推荐(0) 编辑
摘要: <text style="color: #0075F7;">{{completeUrl}}</text> <u-button type="primary" @click="copyUrl(completeUrl)">复制URL</u-button> copyUrl(url) { uni.showMo 阅读全文
posted @ 2022-03-22 17:32 热爱前端的5号机器 阅读(1324) 评论(0) 推荐(0) 编辑
摘要: 第一步 npm安装echarts npm install echarts --save 第二步 在需要使用的页面引入 import * as echarts from 'echarts' <script> import * as echarts from 'echarts'; export defa 阅读全文
posted @ 2022-03-01 11:43 热爱前端的5号机器 阅读(772) 评论(0) 推荐(0) 编辑
摘要: 第一步以管理员身份运行 输入 powerShell 回车 第二步输入命令: set-ExecutionPolicy RemoteSigned 选择输入Y 回车 就好了 阅读全文
posted @ 2022-02-21 23:05 热爱前端的5号机器 阅读(251) 评论(0) 推荐(0) 编辑
摘要: 使用watch监听器 <template> <div id="app"> <input type="text" v-model="msg" /> <input type="text" v-model="name" /> <input type="text" v-model="info.passwor 阅读全文
posted @ 2022-02-20 23:14 热爱前端的5号机器 阅读(177) 评论(0) 推荐(0) 编辑
摘要: 第一步安装day.js npm install dayjs --save 第二步在mian.js里面注册 import dayjs from 'dayjs'; Vue.prototype.dayjs = dayjs; 第三步在页面使用 console.log(this.dayjs().format( 阅读全文
posted @ 2022-02-20 10:56 热爱前端的5号机器 阅读(2060) 评论(0) 推荐(0) 编辑
摘要: HTML片段 <template> <div> vue动态添加对象Key值和value值 </div> </template> script片段 <script> export default { data(){ return{ // 假数据 可以是接口返回的数据 ImV:[ {Categorise 阅读全文
posted @ 2022-02-19 17:47 热爱前端的5号机器 阅读(1565) 评论(0) 推荐(0) 编辑
摘要: 第一步:在uni-app新建的项目中 使用CMD下载uView npm install uview-ui 第二步:在main.js里引入和注册uView 这两句代码需要在import Vue之后 import uView from "uview-ui"; Vue.use(uView); 第三步:在u 阅读全文
posted @ 2022-02-15 00:44 热爱前端的5号机器 阅读(1936) 评论(1) 推荐(0) 编辑