javascript - In easyUI, window.location.href=url; how to jump to a new tab instead of the original tab?
迷茫
迷茫 2017-05-17 10:01:05
0
2
646

In easyUI, window.location.href=url; how to jump to a new tab instead of refreshing on the original tab?

迷茫
迷茫

业精于勤,荒于嬉;行成于思,毁于随。

reply all(2)
巴扎黑

Open a new tab page
parent.window.createTab("title of the new page", url);
Close the current tab page
parent.$(".easyui-tabs").tabs('close', "Current tab Page title");

某草草

Theoretically, the creation of tabs is the permission of the browser, not the permissions of the page. There is a horizontal relationship between tab pages. .
Even if you can create it, you may still encounter compatibility issues, so it is recommended to use the target method of the a tag to trigger it

Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template
About us Disclaimer Sitemap
php.cn:Public welfare online PHP training,Help PHP learners grow quickly!