未验证 提交 a2dbe45f 编写于 作者: H houchengyu 提交者: Gitee

update zh-cn/application-dev/reference/apis/js-apis-pointer.md.

Signed-off-by: Nhouchengyu <houchengyu@huawei.com>
上级 972b8903
......@@ -279,7 +279,7 @@ getPointerStyle(windowId: number, callback: AsyncCallback&lt;PointerStyle&gt;):
import window from '@ohos.window';
window.getTopWindow((error, win) => {
win.getProperties((error, properties) => {
win.getWindowProperties((error, properties) => {
let windowId = properties.id;
if (windowId < 0) {
console.log(`Invalid windowId`);
......@@ -322,7 +322,7 @@ getPointerStyle(windowId: number): Promise&lt;PointerStyle&gt;
import window from '@ohos.window';
window.getTopWindow((error, win) => {
win.getProperties((error, properties) => {
win.getWindowProperties((error, properties) => {
let windowId = properties.id;
if (windowId < 0) {
console.log(`Invalid windowId`);
......@@ -361,7 +361,7 @@ setPointerStyle(windowId: number, pointerStyle: PointerStyle, callback: AsyncCal
import window from '@ohos.window';
window.getTopWindow((error, win) => {
win.getProperties((error, properties) => {
win.getWindowProperties((error, properties) => {
let windowId = properties.id;
if (windowId < 0) {
console.log(`Invalid windowId`);
......@@ -399,7 +399,7 @@ setPointerStyle(windowId: number, pointerStyle: PointerStyle): Promise&lt;void&g
import window from '@ohos.window';
window.getTopWindow((error, win) => {
win.getProperties((error, properties) => {
win.getWindowProperties((error, properties) => {
let windowId = properties.id;
if (windowId < 0) {
console.log(`Invalid windowId`);
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册