网页URLJs传值传值传值传值传值问题
1.<a>标签传值的形式--参数固定:<a href="地址?参数名=值"></a>,多个参数用&隔开<a href="地址?参数1=值&参数2=值"></a>
例:<a href="a.jsp?name=张三"></a>
<div class="pop">
<div style="height:461px;width:880px ;padding-bottom:20px;text-align:center;">
@foreach (var a in Model)
{
if (a.G_Type == "智能手机")
{
////装图片和文字的盒子
<div class="ParentDiv">
<a href="~/ShopGoods/GoodsDetails?Id=@a.ID">
<div class="img fl"><img style="height:140px;width:100px;" src="~/Scripts/GoodsPicture/Smartphone/@a.G_FullName" alt=""></div>
<p style="color:red;">@a.G_Name</p>
</a>
</div>
}
}
</div>
</div>
2.直接在后台拼接<a/>标签的超链接html语句的字符,再传到前台
qxkdId.InnerHtml = string.Format("<a href='CancelDetainInfo.aspx?id={0}' style='color:#00f;' class='gNo' data-id='{0}' >{0}</a>", dt.Rows[0]["autoCancelDetainId"].ToString());
3.