location.reload_location.back_定时location.reload()(2)

电脑杂谈  发布时间:2017-04-28 02:01:19  来源:网络整理

{

if (e.Item.ItemType == ListItemType.Item || e.Item.ItemType == ListItemType.AlternatingItem)

{

string nr = ((DataRowView)e.Item.DataItem).Row["GZZDS"].ToString();

string id = ((DataRowView)e.Item.DataItem).Row["RZID"].ToString();

string rid = ((DataRowView)e.Item.DataItem).Row["RWXH"].ToString();

string link = "";

if (nr == "")

{

link = "<a href='#' onclick=\"selectGuide2('BookDoc.aspx?type=2&Id=" id "&rid=" rid "&Rnd='Math.random());location=location;\">选择指导书</a>";

}

else

{

string t = (ViewState["State"].ToString() == "Query" || ((DataRowView)e.Item.DataItem).Row["GZZT"].ToString() == "工作结束") ? "false" : "true";

string path=((DataRowView)e.Item.DataItem).Row["GZZDSPath"].ToString();

location.back_location.reload_定时location.reload()

link = "<a href='#' onclick=\"EditWord('" path "'," t ")\">" nr "</a>";

}

((Literal)e.Item.FindControl("Literal1")).Text = link;

}

}

window.location.Reload()和window.location.hrefwindow.location.Reload()应该是刷新.(如果有数据提交的话,会提示是否提交的(是和否选项))

window.location.href=window.location.href;

是定向url提交数据

是大的区别还是是否提交数据了

function refresh()

{

//刷新页面函数

//window.focus();刷新窗口

//document.execCommand("Refresh");刷新窗口

//self.location.reload();刷新当前窗口

parent.location.reload();刷新父窗口

//aaa.location.reload();弹出窗口刷新父窗口

}

使用window.location.replace() or window.location.href(), 来重新加载此页面不出现提示框


本文来自电脑杂谈,转载请注明本文网址:
https://www.pc-fly.com/a/ruanjian/article-43895-2.html

相关阅读
    发表评论  请自觉遵守互联网相关的政策法规,严禁发布、暴力、反动的言论

    • 王康
      王康

      #杨洋icon##杨洋2015金投赏#杨洋金投赏

    • 史君丽
      史君丽

      处理没有问题

    • 熊飞
      熊飞

      RIO本人购买价格12元

    热点图片
    拼命载入中...