数据通道

模块,接口,方法 3个部分对应3个文件夹。

1)
web-inf/html/collection/datachannel/modules.jsp

modules.add(new Module(
"广告模块",
"v1",
"advertisement",
"ad/ad.html"      //对应ad文件夹下的ad.jsp
));

2)
web-inf/html/collection/datachannel/ad/ad.jsp

<div class="${ns}subitem" data-url="ad/splashPicture.html">splashPicture</div> //一个接口,指定配置接口访问方法相关信息的文件

3)

web-inf/html/collection/datachannel/ad/splashPicture.jsp 配置访问方法

猜你喜欢

转载自jackleechina.iteye.com/blog/1905238