Created
April 23, 2016 14:19
-
-
Save think2011/442e98aac6c1c956f3ea79dbb6a58a24 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/** | |
* 新窗口打开,并写入内容 | |
* @param html | |
*/ | |
function openWinHtml(html) { | |
let newWindow = window.open("", "newwin"); | |
newWindow.document.write(html) | |
newWindow.document.close() | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment