04 2020 档案
摘要:<video class="tvhou" width="100%" height="100%" controls="controls" autoplay="autoplay" x-webkit-airplay="true" x5-video-player-fullscreen="true" prel
阅读全文
摘要:展开 目录 1.准备环境 2.登录 iOS Dev Center 3.申请证书和描述文件之前需要先申请App ID和证书请求文件 4. 申请开发(Development)证书和描述文件(用户开发者开发和测试) 5. 申请发布(Distribution)证书和描述文件 6.使用Hbuilder X在线
阅读全文
摘要:引入Zepto之后控制台报错如下: TypeError: Cannot read property ‘createElement’ of undefined 原因: 只使用了 AMD 规范的模块导出方法 define,没有用 CommonJs 规范的方法 module.exports 来导出模块,不
阅读全文
摘要:在项目中发现,由于移动端无法看到打印的信息,所以很难进行调试,也不知道问题出在哪里,后来找到了一个好用的插件:vConsole。 1.安装 npm install vconsole 2、在main.js中引入 import Vconsole from 'vconsole'; let vConsole
阅读全文
摘要:首先打包你的 vue 项目 生成 dist 文件夹,教程请移步 https://www.cnblogs.com/taohuaya/p/10256670.html 看完上面的教程,请确保 你是 将: 项目目录下的config文件夹里的index.js文件中,将build对象下的assetsPublic
阅读全文
摘要:1、手机和电脑连接同一个热点,在pc端通过 ipconfig 命令查询本地ip 例如: http://9.1.**.**:8080/#/ //查询本地域名 //1、 windows + R > 输入 cmd //2、 输入 ipconfig //3、IPV4 地址 就是IP地址了 2、在vue we
阅读全文
摘要:播放 document.getElementById("audio").play();暂停 document.getElementById("audio").pause();音量 document.getElementById("audio").volume当前音频的时间 document.getE
阅读全文
摘要:<textarea placeholder="写评论" maxlength="40" @input="descInput" v-model="orders" onchange="this.value=this.value.substring(0, 40)" onkeydown="this.value
阅读全文
摘要:<div class="black-background" @click="handleClone" v-if="flag" @touchmove.prevent @mousewheel.prevent></div> handleClone(){ this.flag = false; }, .bla
阅读全文
摘要:if (plus.os.name == "Android") { var context = plus.android.importClass("android.content.Context"); var locationManager = plus.android.importClass("an
阅读全文
摘要:ios 打开app应用权限 var cllocationManger = plus.ios.importClass("CLLocationManager"); var enable = cllocationManger.locationServicesEnabled(); var status =
阅读全文
摘要:简介: 公共的状态管理模式 是一种最好的非父子组件传值的一种方案 是一个插件 安装: 1、cnpm install vuex -S vueX配置文件 import Vue from "vue"; import Vuex from "vuex"; Vue.use(Vuex);//使用插件 //vu
阅读全文
摘要:<!DOCTYPE html> <html> <head> <meta charset="utf-8" /> <title></title> <style> .scroll{ width:auto; white-space: nowrap; overflow-y: hidden; overflow-
阅读全文
摘要:在我们准备打包项目之前,需要考虑的一个问题是:【我们的项目最终是要部署在根目录还是子目录】 如果是部署在 根目录,并不会出现什么问题,因为你的资源文件放在 static 中,然后你在引用的时候,都是 /static/images/a.png、/static/images/login-bg.jpg 这
阅读全文
摘要:// 引入swiper组件 import Swiper from "swiper"; import "swiper/dist/css/swiper.min.css"; <div class="tuimg"> <!-- swiper --> <div class="swiper-container">
阅读全文
摘要:<template> <div class="top-header"> <div class="top-nav flex flex--justify-content--space-between flex--align-items--center" :class="{'bg-white': !isT
阅读全文