# UNI-APP

# UNI-APP

0篇文章
软件版本升级下载方法封装 UpVersion(){ // #ifdef APP-PLUS plus.runtime.getProperty(plus.runtime.appid, ...
body{ -webkit-user-select: text; }
截屏保存图片到本地 capture() { var pages = getCurrentPages(); var page = pages[pages.length - 1]; c...
错误写法 data() { return { list:[ { id:1, url:"@/static/logo.png" }, { id:1, url:"@/static/log...
禁止导航栏显示: "style": { "navigationStyle":"custom" } 使用: { "path": "pages/login/index", "style...
//引入腾旭地图sdk import qqmapsdk from '@/mixins/qqmap-wx-jssdk.min.js'; const QQMapWX = new qqm...
参数已经提交给后端了,但是后端获取接受不了参数 解决方法: 修改请求头Content-type header:{ 'Content-type':'application/x-www...
uniapp 没有给出直接的 API, 不过可以用 pageScrollTo 来实现. scrollTop 参数给一个很大的数就可以了,要加点延迟, 不然有可能不生效 setTim...
单个组件注册 main.js import empower from '@/components/empower/index.vue' Vue.component('empower...
由于radio和switch组件不支持width和height属性设置,所以使用transform属性可解决大小问题 <radio style="transform: sca...
const uploadTask = uni.uploadFile({ url: aaa, //开发者服务器 url filePath: filePath, //要上传文件资源的路...
1.更目录新建文件 utils/index.js index.js import { TOKENNAME, HTTP_REQUEST_URL } from '../config/a...
写法一:在弹窗外层添加:@touchmove.stop.prevent="()=>false" 写法二:在弹窗外层添加: @touchmove.prevent <tem...
uni.getSystemInfo(OBJECT) 获取屏幕高度宽度 screenWidth 屏幕宽度 screenHeight 屏幕高度 windowWidth 可使用窗口宽度 ...
利用uni-app的onShareAppMessage与onShareTimeline来实现的分享给朋友或分享朋友圈! onShareAppMessage:官网详细讲解地址: on...

关注我们的公众号

微信公众号