velocity学习杂记(二)

先看示例:
<script type="text/javascript">
#if($!{tBoard.id}!=&quot;&quot; &amp;&amp; $!{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语句

猜你喜欢

转载自lihuifen2014.iteye.com/blog/2102465