鸿蒙App 通过隐式want,可启动另个App。和安卓相似。 1.目标应用,配置文件配置action,entities,uri,type 2.启动应用,通过2步 new Want(action,entities,uri,type)context.startAbility(want) 这里要注意的ac
应用复杂时,我们可以把通用功能抽取到单独的ts文件中,每个文件都是一个模块(module)。模块可以相互加载,提供代码复用性 //定义矩形类,并通过export导出 export class Rectangle { //成员变量 public width: number public length:
TypeScript 具备面向对象编辑的基础语法,包括interface,class ,enum等;也具备封装,基础,多态等面向对象的基本特征 //定义矩形类 class Rectangle { //成员变量 private width: number private len
for循环 // 普通for for(let i=1;i<= 10; i++){ console.log('点赞'+i+'次') } // while let i = 1;while(i <= 10){ console.log('点赞'+i+'次'); i++; } let
let msg:string ="hello world" ; console.log('msg:'+ msg); let num:number=21; console.log('num:'+num); let finished: boolean =true; console.log('fini
1.okhttp的使用,内部的实现 2.okhttp,请求失败,重试 RetryAndFollowUplnterceptor
1.Aroute 的原理 2.ViewModel ViewModel 类是一种业务逻辑或屏幕级状态容器。它用于将状态公开给界面,以及封装相关的业务逻辑。 优点是可缓存状态,可在配置更改响应状态 3.flow的操作符 3.1 flow 和 rxjava的区别 RxJava的Observable是热流,
【面试复盘】 1.apt 动态生成代码 多模块 2.jni 步骤 【ok】 写一个native方法 对应这个方法在cpp中实现代码逻辑 System.loadLibrary() cmakelists.txt addlirary 添加定义cpp 3.webview html5 互调 webView.a
npm ERR! code ERESOLVE npm ERR! ERESOLVE unable to resolve dependency tree npm ERR! npm ERR! While resolving: vol.vue3@0.1.0 npm ERR! Found: vue@3