习题应用程序框架

判断题
  1. 一个应用只能有一个UIAbility。错误(False)
  2. 创建的Empty Ability模板工程,初始会生成一个UIAbility文件正确(True)
  3. 每调用一次router.pushUrl()方法页面路由栈数量均会加1。错误(False)
单选题
  1. API9及以上,router.pushUrl()方法,默认的跳转页面使用模式是哪一种?(A)
    A. standard
    B. Single
    C. Specified

  2. UIAbility启动模式需要module.json5文件配置哪个字段?©
    A. module
    B. skills
    C. launchType
    D. abilities

多选题
  1. API9及以上,router.pushUrl()方法的mode参数可以配置为以下哪几种跳转页面使用模式?(AB)
    A. Standard
    B. Single
    C. Specified

  2. UIAbility的生命周期有哪几个状态?(ACDF)
    A. Create
    B. WindowStageCreate
    C. Foreground
    D. Background
    E. WindowStageDestroy
    F. Destroy

  3. UIAbility有哪几种的启动模式?(ABC)
    A. multiton
    B. singleton
    C. specified

发表回复

您的邮箱地址不会被公开。 必填项已用 * 标注