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