diff --git a/zh-cn/application-dev/reference/apis-arkui/js-apis-window.md b/zh-cn/application-dev/reference/apis-arkui/js-apis-window.md index eeab5dc73adae910135d8a153e67d38fe60555d7..acc7f1a5f995e5c5eef9724853e4ec2f7f5422ce 100644 --- a/zh-cn/application-dev/reference/apis-arkui/js-apis-window.md +++ b/zh-cn/application-dev/reference/apis-arkui/js-apis-window.md @@ -9534,14 +9534,14 @@ import { UIAbility } from '@kit.AbilityKit'; export default class EntryAbility extends UIAbility { onWindowStageCreate(windowStage: window.WindowStage): void { - windowStage.loadContent('pages/Index', (loadError) => { + windowStage.loadContent('pages/Index', (loadError: BusinessError) => { if (loadError.code) { console.error(`Failed to load the content. Cause code: ${loadError.code}, message: ${loadError.message}`); return; } console.info("Succeeded in loading the content."); windowStage.createSubWindow("subWindow").then((subWindow: window.Window) => { - if (subWindow == null) { + if (subWindow === null) { console.error("Failed to create the subWindow. Cause: The data is empty"); return; }