5 回答

TA貢獻1825條經驗 獲得超4個贊
/***********************************************************************
* OpenEditWindow??? 打開編輯窗口
*
* url:? 頁面地址
* width:????? 窗口寬度
* height:??? 窗口高度
*
*
* 由于使用頻繁,(統一處理 CRUD )故特設此函數.
***********************************************************************/
function OpenEditWindow(url,width,height)
{
??? var x = parseInt(screen.width / 2.0) - (width / 2.0);
??? var y = parseInt(screen.height / 2.0) - (height / 2.0);
?window.open(url,"","resizable=yes,menubar=no,toolbar=no,location=no,directories=no,status=no,width=" + width + ",height=" + height + ",left="+ x + ",top=" + y +",scrollbars=yes");
}
?
?
用這個試下

TA貢獻1797條經驗 獲得超4個贊
原來是因為不是同域名啊。難怪我用你這個方法之前不行。
但是哥們。我其實想說。真不知道? 不同域名下的寫法 要怎么寫啊。
能否在勞煩哥們幫忙寫下。不同域名下的時候怎么寫。
添加回答
舉報