一: getDescBox () { uni.createSelectorQuery().in(this).select('.' + class).boundingClientRect(result => { if (result) { console.log ...
异步调用 async tapTab index 点击tab bar if this.tabIndex index return false else let tabBar await this.getElSize tab bar , console.log tabBar , ...
2019-06-28 09:59 0 3597 推荐指数:
一: getDescBox () { uni.createSelectorQuery().in(this).select('.' + class).boundingClientRect(result => { if (result) { console.log ...
...
uni.getSystemInfo({ success: function(res) { // res - 各种参数 console.log(res.windowWidth); // 屏幕的宽度 let info = uni ...
1.创建一个http.js 2.将http.js引入 import http from '@/components/utils/http.js'; ...
uni-app 的请求接口在官方文档里是这样的 在common 中 http.js文档中进行如下封装: 在页面中引入http.js 在需要接口请求的部分可以这样写: http.httpRequest({ url: '/api ...
获取dom元素data-xxx <picker mode="selector" @change='select_pick' :value="(i==1?pack1_index:(i==2?pack2_index:pack3_index))" :range='pack_list ...
转载:https://blog.csdn.net/qq_41287423/article/details/98597276 ...
获取隐藏元素(display:none)的物理尺寸 问题及场景 假如我们有这样一个输入框,点击能展开选择。如下图: 在这里输入框和下方的展开区域是分离的,独立的两个控件!初始状态下面的可选框是隐藏的(ng-show=false) 展开区域中可折叠组件accordion(对应 ...