logo
publist
写文章

简介

该用户还未填写简介

擅长的技术栈

可提供的服务

暂无可提供的服务

uniapp禁止单页面侧滑返回

全局禁止在manifestjson中配置"popGesture": "none"https://uniapp.dcloud.io/collocation/manifest?id=%e5%ae%8c%e6%95%b4-manifestjson// 调用5+ Api// #ifdef APP-PLUSvar page = this.$mp.page.$getAppWebview();page.setS

小程序解决image无法显示base64数据的问题

// 对拿到的数据进行处理data = data.replace(/[\r\n]/g,"")

#小程序
uniapp计算app缓存与清理缓存

计算缓存formatSize() {let that = this;plus.cache.calculate(function(size) {let sizeCache = parseInt(size);if (sizeCache == 0) {that.f

flutter rpx屏幕适配方案

rpx是小程序中的适配方案,它将750px作为设计稿,1rpx=屏幕宽度/750,其它所有的单位都使用rpx单位。不管是什么屏幕,统一分成750份在iPhone8上: 1rpx = 375/750 = 0.5px在iPhone12proMax 上:1rpx = 428/750 = 0.571px所以我们就可以通过上面的计算方式,算出一个rpx,再将自己的size和rpx单位相乘即可: 比如300p

#flutter#css#javascript
flutter数据存储封装shared_preferences

import 'package:shared_preferences/shared_preferences.dart';// 设置setStorage(String key, value) async {SharedPreferences prefs = await SharedPreferences.getInstance();if (value is String) {prefs.setStr

#flutter#android
flutter解决键盘遮挡TextField

Scaffold有一个属性resizeToAvoidBottomInset,默认为true,配合SingleChildScrollView可实现自适应键盘高度class Demo extends StatelessWidget {const Demo({Key? key}) : super(key: key);@overrideWidget build(BuildContext context)

#flutter
uniapp全局关闭页面回弹

"globalStyle": {"backgroundColor": "#F8F8F8","navigationStyle": "custom", //去除导航栏"app-plus": {// 将回弹属性关掉"bounce": "none"}},单页面在"style"属性中关闭

uniapp清除Scheme

避免onShow一直进入同一个页面plus.runtime.arguments = ''

uniapp左右联动菜单

来自uView提供的模版https://uviewui.com<template><view class="u-wrap"><view class="u-search-box"><view class="u-search-inner"><u-icon name="search" color="#909399" :size="28">&lt

    共 14 条
  • 1
  • 2
  • 请选择