随笔分类 - app
摘要:先上效果图 1.使用页面引入swiper.css和swiper.js // 引入swiper组件 import Swiper from "swiper"; import "swiper/dist/css/swiper.min.css"; 2.html <div class="swiper-conta
阅读全文
摘要:(function(doc, win) { var docEl = doc.documentElement, resizeEvt = 'orientationchange' in window ? 'orientationchange' : 'resize', recalc = function()
阅读全文
摘要:因iOS13起UIWebview被列为非公开API,未来会被App Store拒绝。 从HBuilderX 2.3.0+起,iOS App的默认webview从UIwebview改为了WKWebview。 WKWebview与UIWebview有部分区别,包括更严格的联网或canvas跨域限制。 详
阅读全文
摘要:首先在manifest.json的plus节点下新增allowsInlineMediaPlayback节点为true。 "plus":{ "allowsInlineMediaPlayback": true } 然后在video标签中添加playsinline属性,然后测试得出iphone5s系统8.
阅读全文
摘要:html: <div class="box" style="margin-top:0;" @click="share('weixin')">微信分享</div> <div class="box" style="margin-top:0;" @click="share('qq')">QQ分享</div
阅读全文
摘要:html: <div class="box" style="margin-top:0;" @click="getLogin('weixin')">微信登录</div> <div class="box" style="margin-top:0;" @click="getLogin('qq')">QQ登
阅读全文
摘要:mounted() { window.addEventListener('scroll', this.handleScroll, true); // 监听(绑定)滚轮滚动事件 this.getBookList();//请求数据 }, destroyed() { window.removeEventL
阅读全文
摘要:<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在线
阅读全文
摘要:在项目中发现,由于移动端无法看到打印的信息,所以很难进行调试,也不知道问题出在哪里,后来找到了一个好用的插件: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
阅读全文
摘要: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 =
阅读全文
摘要:<!DOCTYPE html> <html> <head> <meta charset="utf-8" /> <title></title> <style> .scroll{ width:auto; white-space: nowrap; overflow-y: hidden; overflow-
阅读全文
摘要:/**检查是否打开GPS功能(android)**/ export const checkOpenGPSServiceByAndroid = () => { let system = uni.getSystemInfoSync();// 获取系统信息 if (system.platform 'and
阅读全文
摘要:问题描述: 楼主在开发过程中,需要页面传值,内容是一个富文本,所以不能用路径+?的方式传值,选择了uniapp的页面通讯方式,但是值接收到了,data里的数据改变了,视图却不刷新解决: 经过楼主反复试验发现,uniapp的页面通讯方式只有两种跳转方式生效, 1.uni.switchTab //跳转到
阅读全文
摘要:<template> <view class="page-box"> <uniStatusBar class="status"></uniStatusBar> <uniStatusBar></uniStatusBar> <view style="height:200px">滚动试试</view> <
阅读全文
摘要:实现:锚点滚动到指定位置uni.createSelectorQuery().in(this).select("#one").boundingClientRect(data => { uni.pageScrollTo({ duration:200, scrollTop: that.scrollTop
阅读全文
摘要:uni.createSelectorQuery().select(".app").boundingClientRect(data=>{//目标节点 uni.createSelectorQuery().select(".al").boundingClientRect((res)=>{//最外层盒子节点
阅读全文

浙公网安备 33010602011771号