您可以在服务器端采用目录结构,在客户端创建一个树型表示。
You are taking the directory structure represented on the server and creating a tree representation on the client.
编写客户机端代码以遍历在运行时生成的解析树并对其求值。
Write client-side code to walk and evaluate the parse tree that's produced at runtime.
您需要为树定义一个新内容类型,这样Dojo客户端就可以区分和显示不同小部件上的数据,如清单15所示。
You need to define a new content type for the tree so Dojo clients can differentiate and render the data on different widgets, as shown in Listing 15.
应用推荐