diff --git a/zh-cn/application-dev/reference/apis/js-apis-uri.md b/zh-cn/application-dev/reference/apis/js-apis-uri.md index 29e99574adbea30722baaafb10ebdd3721653d0e..1dee31b05c3f382dbfcc087cbb2b18e79ba456d3 100644 --- a/zh-cn/application-dev/reference/apis/js-apis-uri.md +++ b/zh-cn/application-dev/reference/apis/js-apis-uri.md @@ -112,8 +112,8 @@ equals(other: URI): boolean **示例:** ```js -const uriInstance = new uri.URI('https://gg:gaogao@[::]:88/path/path66?foooo#gaogao'); -const uriInstance1 = new uri.URI('https://gg:gaogao@[::]:88/path/path66?foooo#gaogao'); +const uriInstance = new uri.URI('https://username:password@host:8080/directory/file?query=pppppp#qwer=da'); +const uriInstance1 = new uri.URI('https://username:password@host:8080/directory/file?query=pppppp#qwer=da'); uriInstance.equals(uriInstance1); ``` ### equalsTo9+ @@ -139,8 +139,8 @@ equalsTo(other: URI): boolean **示例:** ```js -const uriInstance = new uri.URI('https://gg:gaogao@[::]:88/path/path66?foooo#gaogao'); -const uriInstance1 = new uri.URI('https://gg:gaogao@[::]:88/path/path66?foooo#gaogao'); +const uriInstance = new uri.URI('https://username:password@host:8080/directory/file?query=pppppp#qwer=da'); +const uriInstance1 = new uri.URI('https://username:password@host:8080/directory/file?query=pppppp#qwer=da'); uriInstance.equalsTo(uriInstance1); ```