The downside, however, is that displaying the content in a Web browser is not as straightforward as doing a simple document.write (...) or setting the innerHTML property on a div.
但是,其缺点是,与编写一个简单的document . write(…)或在一个div上设置innerhtml属性相比,在Web浏览器中显示内容要更加复杂。
To update the value of the div element that contains the suggestions, use the dojo.byId method to get a reference for the div by the ID and set the innerHTML property as shown in Listing 9.
想要更新包含建议选项的 div 元素的值,使用 dojo.byId 方法通过 ID 获取 div 的参考资料,并如清单 9 所示设置 innerHTML 属性。
In this case, you replace the innerHTML value of the DIV tag with an updated string each time the user clicks on the scrollbar.
在这个例子中,每当用户单击滚动条时,便用一个更新的字符串替换DIV标记的innerhtml值。
应用推荐