首页 > 代码库 > window.open(url,"_self")

window.open(url,"_self")

***

1,不用以弹窗打开

<s:iterator value="page.result" status="st">                    <tr>                        <td><s:property                                value="#st.index+1 + (page.pageNo-1)*page.pageSize" />                        </td>                        <td><input type="checkbox" id="jsy" name="jsy" class="jsy"                            value="<s:property value="http://www.mamicode.com/cpzc.id"/>" /></td>                        <td><a href="#" onclick="view(‘<s:property value="http://www.mamicode.com/cpzc.id"/>‘);"><s:property                                    value="cpzc.zcbh" />                        </a>                        </td>
</s:iterator>

function view(id){
var url = "<%=path%>/business/cpzc/cpzc!view.action?model.id="+id;
window.open(url,"_self");
}

 

 

***

window.open(url,"_self")