先看示例:
1.在jquery中加入velocity语句
<script type="text/javascript">
#if($!{tBoard.id}!="" && $!{tBoard.id}==133)
#else
<script type="text/javascript">
jQuery.ajax({
url : "http://****",
type: "GET",
dataType: "jsonp",
success: function(text){
jQuery("#forumsTalkingAbout").html(text);
}
});
</script>
#end
</script>1.在jquery中加入velocity语句
Velocity与jQuery整合示例
本文展示了一个将Velocity模板引擎与jQuery AJAX请求结合使用的具体示例。通过此示例,可以了解如何根据条件判断来决定是否发起AJAX请求,并使用返回的数据更新页面内容。
1269

被折叠的 条评论
为什么被折叠?



