一.动态路径:
var ts=CommonFunction.getQueryVariable('tt'); window.top.location.href=""+ts+".html"
其中ts是其他界面传过来的参数,将该参数作为href路径的一部分即 “+ts+”
二. 动态参数:
$("#storageCount1").html("") $("#storageCount1").append("<a href=\""+ctx+"/warehouse/storageDetail/init?status=1&billCode="+workordercode+"\">"+data+"</a>")
用两个“+”包起来,作为动态参数。