代码执行入口主函数:main
__name__ == '__main__'
入口函数
if __name__ == "__main__":
# 调用函数
init_db('movietest.db')
...
5年前 (2020-12-23)
喜欢
保留前三位后三位
let accountNo = '123456789123456789'
accountNo.substr(0,3) + '******' + accountNo.substr(accountNo.length - 3)
保...
5年前 (2020-12-22)
喜欢
查询是否需要热更新
getupdate() {
var that = this;
this.$minApi
.updateconf()
.then(res => ...
5年前 (2020-12-22)
喜欢
uniapp 版本对比实现热更新
创建utils.js
module.exports = {
/**
* 比较版本号的大小,如果curV 大于 reqV,则返回true,否则返回false
* @param {String} curV
* ...
5年前 (2020-12-22)
喜欢
在做app的时候经常需要上传头像,这就需要压缩图片了
使用plus.zip.compressImage 进行压缩
chooseImage() {
var that = this;
uni.chooseImage({
...
5年前 (2020-12-22)
喜欢
uploadimg(pic) {
var that = this;
uni.showLoading({
title: '上传中'
});
...
5年前 (2020-12-22)
喜欢
苹果
uni.getSystemInfoSync().platform == 'ios'
安卓
uni.getSystemInfoSync().platform === 'android'
...
5年前 (2020-12-22)
喜欢
Some conflicts were found in the installation area.
Some of the conflicts below do not have a solution, so the patch cannot be applied.
Plea...
5年前 (2020-12-21)
喜欢
onLoad(e) {
var that=this;
that.id = e.id ? e.id : '128826844756709376';
if (that.id) {
that...
5年前 (2020-12-21)
喜欢
确认信息框
uni.showModal({
title: '提示',
confirmText: '注册账号',
cancelText: '登录绑定',
content: '当前微信还未绑定账号,请使用账号密码登录进行绑定或注...
5年前 (2020-12-21)
喜欢