未验证 提交 c14e2383 编写于 作者: 小马奔腾 提交者: Gitee

Modify the xml module xts example

Modify the xml module xts example

Modify the xml module xts example

issue: https://gitee.com/openharmony/docs/issues/I5SFP7Signed-off-by: N小马奔腾 <maxiaodong16@huawei.com>
上级 ceb3e307
......@@ -338,8 +338,8 @@ let strXml =
let arrayBuffer = new ArrayBuffer(strXml.length);
let bufView = new Uint8Array(arrayBuffer);
let strLen = strXml.length;
for (var i = 0; i < strLen; ++i) {
bufView[i] = strXml.charCodeAt(i);
for (var tmp = 0; tmp < strLen; ++tmp) {
bufView[tmp] = strXml.charCodeAt(tmp);
}
let that = new xml.XmlPullParser(arrayBuffer);
let arrTag = {};
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册