diff --git a/zh-cn/application-dev/device/pointerstyle-guidelines.md b/zh-cn/application-dev/device/pointerstyle-guidelines.md index 0f3d451f1a58ab65fb8770a0bcb8319b72d32c80..fabac3d7c470187cbde5df5ef12b302f400f243d 100644 --- a/zh-cn/application-dev/device/pointerstyle-guidelines.md +++ b/zh-cn/application-dev/device/pointerstyle-guidelines.md @@ -87,7 +87,7 @@ window.getLastWindow(this.context, (error, windowClass) => { console.error('Failed to obtain the top window. Cause: ' + JSON.stringify(error)); return; } - var windowId = windowClass.getWindowProperties().id; + let windowId = windowClass.getWindowProperties().id; if (windowId < 0) { console.log(`Invalid windowId`); return; @@ -107,7 +107,7 @@ window.getLastWindow(this.context, (error, windowClass) => { console.error('Failed to obtain the top window. Cause: ' + JSON.stringify(error)); return; } - var windowId = windowClass.getWindowProperties().id; + let windowId = windowClass.getWindowProperties().id; if (windowId < 0) { console.log(`Invalid windowId`); return;