09 2025 档案

摘要:1、实现android的addJavascriptInterface操作 即鸿蒙注入JavaScript对象到window对象中 javaScriptProxy javaScriptProxy(javaScriptProxy: JavaScriptProxy) // xxx.ets import { 阅读全文
posted @ 2025-09-22 17:44 听着music睡 阅读(32) 评论(0) 推荐(0)
摘要:get请求将键值对数据拼接到url后面,并且进行编码处理(编码空格(转为%20)和中文字符等非保留字符) static async get<T>(url: string, params?: HashMap<string,object>): Promise<T> { if (params && par 阅读全文
posted @ 2025-09-22 16:17 听着music睡 阅读(5) 评论(0) 推荐(0)
摘要:如下类: @ObservedV2 export class BizPriceEntity{ @Trace disabled:boolean = true // true已停用 false未停用 @Trace value:string = "" // 价格名称 @Trace code:string = 阅读全文
posted @ 2025-09-04 15:18 听着music睡 阅读(7) 评论(0) 推荐(0)
摘要:一种思路,提高效率 1、在res-values-attr.xml文件 设置组件的自定义属性 <declare-styleable name="CCommonLabelView"> <attr name="title" format="string"/> <attr name="subTitle" f 阅读全文
posted @ 2025-09-01 16:05 听着music睡 阅读(7) 评论(0) 推荐(0)