怎样在小程序里实现标题的更改
669
2022-09-20
用window.open函数页面传值
页面1:
<%@ Page Language="C#" AutoEventWireup="true" CodeBehind="MineXueXi.aspx.cs" Inherits="MineXueXi" %>
页面2:
<%@ Page Language="C#" AutoEventWireup="true" CodeBehind="MineXueXi01.aspx.cs" Inherits="MineXueXi01" %>
/** *打开模态窗口 *@url 地址 *@width 宽度 *@height 高度 */ function showDialog(url, width, height) { var x = parseInt(screen.width / 2.0) - (width / 2.0); var y = parseInt(screen.height / 2.0) - (height / 2.0); if (window.ActiveXObject) { retval = window.showModalDialog(url, window, "dialogWidth:" + width + "px; dialogHeight:" + height + "px; dialogLeft:" + x + "px; dialogTop:" + y + "px; status:no; directories:yes;scrollbars:no;Resizable=no; "); } else { var win = window.open(url, "mcePopup", "top=" + y + ",left=" + x + ",scrollbars=" + scrollbars + ",dialog=yes,modal=yes,width=" + width + ",height=" + height + ",resizable=no"); eval('try { win.resizeTo(width, height); } catch(e) { }'); win.focus(); } }
版权声明:本文内容由网络用户投稿,版权归原作者所有,本站不拥有其著作权,亦不承担相应法律责任。如果您发现本站中有涉嫌抄袭或描述失实的内容,请联系我们jiasou666@gmail.com 处理,核实后本网站将在24小时内删除侵权内容。
发表评论
暂时没有评论,来抢沙发吧~