会员
周边
新闻
博问
闪存
众包
赞助商
Chat2DB
所有博客
当前博客
我的博客
我的园子
账号设置
会员中心
简洁模式
...
退出登录
注册
登录
幽暗天琴
博客园
首页
新随笔
联系
订阅
管理
上一页
1
···
8
9
10
11
12
13
14
15
16
···
18
下一页
2023年8月15日
uniapp,微信小程序获取用户手机号(耦合同意小程序隐私条款,从基础库 2.32.3 开始支持)
摘要: 1.获取手机号的按钮 <button v-if="!mobile" class="btns" style="margin-top: -100rpx;" open-type="getPhoneNumber" @getphonenumber="getPhoneNumber">授权手机号码</button
阅读全文
posted @ 2023-08-15 15:38 幽暗天琴
阅读(2768)
评论(0)
推荐(0)
2023年8月14日
有时候修改了参数但页面无变化,uniapp强制重新渲染页面this.$forceUpdate();
摘要: this.$forceUpdate();
阅读全文
posted @ 2023-08-14 16:05 幽暗天琴
阅读(371)
评论(0)
推荐(0)
2023年8月11日
宝塔项目迁移到另外一个宝塔,访问出现错误No input file specified.解决方法
摘要: 1.PHP网站项目从测试的宝塔转移到正式的宝塔,项目转移后打开出现错误No input file specified,查询错误日志 /www/wwwlogs/(自己网站的error日志) 发现 查询了一下这个错误: 最终发现问题在public文件下的.user.ini 将路径修改为新网址,问题解决
阅读全文
posted @ 2023-08-11 18:38 幽暗天琴
阅读(169)
评论(0)
推荐(0)
2023年8月1日
uniapp将时间戳转化为时间格式
摘要: import Vue from 'vue' // 时间戳——日期格式Vue.filter("formatDate",(data,type)=>{ if (!data) { return '- -' } data = String(data).length <= 10 ? data * 1000 :
阅读全文
posted @ 2023-08-01 11:08 幽暗天琴
阅读(1789)
评论(0)
推荐(0)
2023年7月28日
uniapp调用js文件里面的函数
摘要: 例如:common.js里面的内容: /** * 退出登录 */export function exitLogin() { console.log('退出登录233') uni.setStorageSync('token',''); uni.setStorageSync('userInfo','')
阅读全文
posted @ 2023-07-28 11:09 幽暗天琴
阅读(505)
评论(0)
推荐(0)
2023年7月25日
uniapp,打开安卓系统设置的应用信息页面或者耗电详情页面(用于用户手动设置后台启动)
摘要: openSettings() { var main = plus.android.runtimeMainActivity(); // var pkName = main.getPackageName();//获取包名 // var uid = main.getApplicationInfo().pl
阅读全文
posted @ 2023-07-25 15:20 幽暗天琴
阅读(737)
评论(0)
推荐(0)
2023年7月19日
fastAdmin,thinkPHP框架api路径404解决方法
摘要: 问题:访问api路径提示404 解决方法:宝塔设置伪静态: 问题解决:
阅读全文
posted @ 2023-07-19 11:29 幽暗天琴
阅读(1088)
评论(0)
推荐(0)
2023年7月14日
uniapp云发布时自有证书的生成、安卓证书签名生成
摘要: 原文地址:https://blog.nanzhi.vip/?article_id=11&type=blog
阅读全文
posted @ 2023-07-14 17:37 幽暗天琴
阅读(24)
评论(0)
推荐(0)
2023年6月27日
uniapp,微信小程序点击按钮打开地图进行导航
摘要: uniapp示例: <view class="order-contact-item" style="width:50%;text-align: center;" @tap="openMapNavigation">导航商家</view> //js函数打开导航 openMapNavigation() {
阅读全文
posted @ 2023-06-27 18:17 幽暗天琴
阅读(1159)
评论(0)
推荐(0)
js常用操作
摘要: 1.重新渲染页面元素 this.$forceUpdate(); 2.对象转化为json字符串再传参JSON.stringify() 3.删除js对象数组元素splice(index,1) this.imgList.splice(index,1); //index为数组下标,1为删除的数量 4.JSO
阅读全文
posted @ 2023-06-27 15:50 幽暗天琴
阅读(18)
评论(0)
推荐(0)
上一页
1
···
8
9
10
11
12
13
14
15
16
···
18
下一页
公告