摘要: 1、手机和电脑连接同一个热点,在pc端通过 ipconfig 命令查询本地ip 例如: http://9.1.**.**:8080/#/ //查询本地域名 //1、 windows + R > 输入 cmd //2、 输入 ipconfig //3、IPV4 地址 就是IP地址了 2、在vue we 阅读全文
posted @ 2020-04-14 10:26 自律·给我自由 阅读(1935) 评论(0) 推荐(0) 编辑
摘要: 播放 document.getElementById("audio").play();暂停 document.getElementById("audio").pause();音量 document.getElementById("audio").volume当前音频的时间 document.getE 阅读全文
posted @ 2020-04-13 17:06 自律·给我自由 阅读(1001) 评论(0) 推荐(0) 编辑
摘要: <textarea placeholder="写评论" maxlength="40" @input="descInput" v-model="orders" onchange="this.value=this.value.substring(0, 40)" onkeydown="this.value 阅读全文
posted @ 2020-04-13 10:23 自律·给我自由 阅读(4318) 评论(0) 推荐(0) 编辑
摘要: <div class="black-background" @click="handleClone" v-if="flag" @touchmove.prevent @mousewheel.prevent></div> handleClone(){ this.flag = false; }, .bla 阅读全文
posted @ 2020-04-09 16:15 自律·给我自由 阅读(10467) 评论(0) 推荐(0) 编辑
摘要: if (plus.os.name == "Android") { var context = plus.android.importClass("android.content.Context"); var locationManager = plus.android.importClass("an 阅读全文
posted @ 2020-04-08 11:10 自律·给我自由 阅读(1445) 评论(0) 推荐(0) 编辑
摘要: ios 打开app应用权限 var cllocationManger = plus.ios.importClass("CLLocationManager"); var enable = cllocationManger.locationServicesEnabled(); var status = 阅读全文
posted @ 2020-04-08 11:09 自律·给我自由 阅读(1110) 评论(0) 推荐(0) 编辑
摘要: ​简介: 公共的状态管理模式 是一种最好的非父子组件传值的一种方案 是一个插件 ​安装: 1、cnpm install vuex -S vueX配置文件 import Vue from "vue"; import Vuex from "vuex"; Vue.use(Vuex);//使用插件 //vu 阅读全文
posted @ 2020-04-03 16:18 自律·给我自由 阅读(160) 评论(0) 推荐(0) 编辑
摘要: <!DOCTYPE html> <html> <head> <meta charset="utf-8" /> <title></title> <style> .scroll{ width:auto; white-space: nowrap; overflow-y: hidden; overflow- 阅读全文
posted @ 2020-04-03 15:47 自律·给我自由 阅读(2320) 评论(0) 推荐(0) 编辑
摘要: 在我们准备打包项目之前,需要考虑的一个问题是:【我们的项目最终是要部署在根目录还是子目录】 如果是部署在 根目录,并不会出现什么问题,因为你的资源文件放在 static 中,然后你在引用的时候,都是 /static/images/a.png、/static/images/login-bg.jpg 这 阅读全文
posted @ 2020-04-01 16:59 自律·给我自由 阅读(2303) 评论(0) 推荐(0) 编辑
摘要: // 引入swiper组件 import Swiper from "swiper"; import "swiper/dist/css/swiper.min.css"; <div class="tuimg"> <!-- swiper --> <div class="swiper-container"> 阅读全文
posted @ 2020-04-01 14:14 自律·给我自由 阅读(755) 评论(0) 推荐(0) 编辑