注意:理想情况下,可以将数据访问逻辑分隔到它自己的部署单元中并且保持控制器没有被混杂。
NOTE: Ideally, you could separate the data access logic into its own deployment unit and keep the controller pure.
XSL 的使用将页面布局与程序数据分隔开,因此您不必编写或使用 XML 解析器,因为 XSL 替您这样做了。
The use of XSL separates the page layout from the program data, so you don't need to write or use an XML parser because XSL does it for you.
如果您处于这样一个环境中:服务器向您发送的数据非常有限,或者采用的是奇怪的逗号分隔、竖线分隔的格式,那么XML可能会给您带来真正的收益。
If you've a situation where the data the server sends you is limited, though, or in a strange comma - or pipe-delimited format, then XML might offer you real advantages.
应用推荐