diff --git a/en/application-dev/reference/apis/js-apis-xml.md b/en/application-dev/reference/apis/js-apis-xml.md index c7d28fe1bf86073c4453ea9e2cf9cbcb3698062e..b41067a747b8904b1ecd707d8731c7a5668e00fb 100644 --- a/en/application-dev/reference/apis/js-apis-xml.md +++ b/en/application-dev/reference/apis/js-apis-xml.md @@ -302,7 +302,7 @@ var strXml = ' Work' + ' Play' + ''; -var arrayBuffer = new ArrayBuffer(strXml.length*2); +var arrayBuffer = new ArrayBuffer(strXml.length); var bufView = new Uint8Array(arrayBuffer); var strLen = strXml.length; for (var i = 0; i < strLen; ++i) { @@ -336,7 +336,7 @@ var strXml = ' Work' + ' Play' + ''; -var arrayBuffer = new ArrayBuffer(strXml.length*2); +var arrayBuffer = new ArrayBuffer(strXml.length); var bufView = new Uint8Array(arrayBuffer); var strLen = strXml.length; for (var i = 0; i < strLen; ++i) { diff --git a/zh-cn/application-dev/reference/apis/js-apis-xml.md b/zh-cn/application-dev/reference/apis/js-apis-xml.md index eb3c17079cef9a016156179ee6b3f97e13dc26e6..7d573cf82dd1203054dc4aaec9465ebfd003971f 100644 --- a/zh-cn/application-dev/reference/apis/js-apis-xml.md +++ b/zh-cn/application-dev/reference/apis/js-apis-xml.md @@ -301,7 +301,7 @@ var strXml = ' Work' + ' Play' + ''; -var arrayBuffer = new ArrayBuffer(strXml.length*2); +var arrayBuffer = new ArrayBuffer(strXml.length); var bufView = new Uint8Array(arrayBuffer); var strLen = strXml.length; for (var i = 0; i < strLen; ++i) { @@ -335,7 +335,7 @@ var strXml = ' Work' + ' Play' + ''; -var arrayBuffer = new ArrayBuffer(strXml.length*2); +var arrayBuffer = new ArrayBuffer(strXml.length); var bufView = new Uint8Array(arrayBuffer); var strLen = strXml.length; for (var i = 0; i < strLen; ++i) {