|

楼主 |
发表于 2009-4-27 09:54:13
|
显示全部楼层
我换成了run方法,
<script type="text/javascript">
function BeforeClose()
{
if(!X3X.TerminateQuery())
{
event.returnValue = "";
}
}
document.title = X3X.DisplayName;
X3X.Params = "<%= params%>";
X3X.UpdateVersion();
X3X.ShowSplash();
X3X.Init();
X3X.CloseSplash();
// X3X.Logon("CHENPING","");
X3X.Run("Biz:\\TXK\\FUNC\\GZRZCXGN.Func", "", "", "");
document.body.onbeforeunload=BeforeClose;
document.title = X3X.DisplayName;
</script>
这样写,会报错:“请先登录”。
如果把上面的logon方法的注释去掉,它就能自动登录进去了。
我还是需要做人员的身份验证。 |
|