标签:
JS解析Json 数据并跳转到一个新页面,代码如下
$.getJSON("http://api.cn.abb.com/common/api/staff/employee/" + obj.id, function (result) { window.open("https://abb-my.sharepoint.com/_layouts/15/me.aspx?p=" + result.Email, "_blank") });
取消A 标签跳转
<text> <div class="leftitem" data-id="@item.ID"> <div class="photo"><img class="itemImg" onerror="javascript: this.src = ‘@Url.Content("~/Content/img/avatar_blank.png")‘;" src=‘@url‘ /></div> <div class="name">@str</div> @if(item.Name != item.AD) { if(item.AD=="JPSHKUN"||item.AD=="CHKADOB1"||item.AD=="JPKEWAT"||item.AD=="JPHIHOC") { <div style="float:left;font-size:12px;padding-top: 8px;color:#555555;cursor:pointer; width:260px;padding-left:15px;"> <a href="@infoUrl" target="_blank" onclick="getHref(this); return false" id="@item.AD">@item.Name</a><span style="padding-left:3px; color:#067237;">[JV Partner]</span> </div> } else{ <div style="float:left;font-size:12px;padding-top: 8px;color:#555555;cursor:pointer; width:260px;padding-left:15px;"> <a href="@infoUrl" target="_blank" onclick="getHref(this); return false" id="@item.AD">@item.Name</a> </div> } } else { <div style="float:left;font-size:12px;padding-top: 8px;color:#555555;width:260px;padding-left:15px;"> <span style="color:#4892c4">@item.Name</span><span style="padding-left:3px; color:#067237;">[JV Partner]</span> </div> } @*<i class="icon-sitemap" data-ad="@item.AD"></i>*@ </div> </text>
标签:
原文地址:http://www.cnblogs.com/wangguowen27/p/Json_A_C.html