鸿蒙next自定义弹窗

dsttl32个月前 (06-01)279
自定义弹窗组件MyDialog @CustomDialog export struct MyDialog { title?: string cancelBtnText?: string confirmBtnText?: string message?: string cancel...

鸿蒙next长按事件

dsttl32个月前 (05-25)306
import { promptAction } from '@kit.ArkUI'; @Entry @Component struct ButtonExample { @State message: string = 'Button'; buil...

鸿蒙next申请权限

dsttl32个月前 (05-24)177
写在入口UIAbility里面 PERMISSIONS: Array<Permissions> = ['ohos.permission.READ_MEDIA','ohos.permission.WRITE_MEDIA']; onCreate(...

鸿蒙next应用全屏设置

dsttl32个月前 (05-22)348
首先,需要判断设备类型,避免PC上无法窗口化运行 这个判断需要在UIAbility中的onWindowStageCreate()方法内 /** * 判断是否是手机设备,如果是手机设备,则设置全屏 (注:2in1设备设置全屏后无法窗口化运行) */ if (deviceIn...

鸿蒙next保存图片、视频组件

dsttl32个月前 (05-21)274
page import photoAccessHelper from '@ohos.file.photoAccessHelper'; import fs from '@ohos.file.fs'; import common from '@ohos....

鸿蒙next获取软件版本号

dsttl32个月前 (05-20)264
获取软件版本号工具类 import { bundleManager } from '@kit.AbilityKit'; export function getVersionName(): string { let bundleFlags = bundleManager.B...

使用okhttp时怎么设置不让它自动重定向

dsttl31年前 (2023-04-13)152
在使用 OkHttp 进行请求时,默认情况下会自动重定向。如果需要设置不自动重定向,可以使用 followRedirects(false) 方法来实现。示例如下: OkHttpClient client = new OkHttpClient().newBuilder().followRedirect...

超话一键签到

dsttl32年前 (2023-01-17)259
超话一键签到
软件官网 https://wb.dsttl3.cn 软件介绍 这款软件就可以轻松实现微博超话一键签到了,彻底解放双手,不需要前一天访问,不需要7级,没有数量限制,真正的一键签到。快来下载体验吧。 软件版本 1、 iOS 快捷指令版 版本:1.0...

谷歌自定义搜索

dsttl32年前 (2022-04-17)183
谷歌自定义搜索
代码下载 https://github.com/dsttl3/GoogleCSE 阿里函数计算FC 登录到阿里云函数计算fc控制台 https://fcn...

让Mac OS支持读写NTFS

dsttl34年前 (2020-03-04)255
让Mac OS支持NTFS 1、查看磁盘列表 diskutil list 查到的NTFS磁盘名称 BOOTCAMP 2、修改系统文件 sudo vim /etc/fstab 在/etc/fstab中加入如下内容(BOOTCAMP 为磁盘名称)...