Phenomenon: In the process of doing the project, using window.open to open a new window, testing on the Windows system's Ie,firefox,chrome browser is no problem, In the Apple System Safari browser found some window.open can open tabs, some can not open
The first option is to open the tab
The second type does not open the tab
Solution: Baidu found that "there is no way to execute window.open in the callback function in Safari because Safari security is blocking it", thesolution is to open a blank window before the request, In the request successful callback function: If the request error does not need to open the page, will open the blank window to turn off; otherwise modify the location address of the currently open blank window
Note: the Request_data.post_data () method is a self-styled request function, the Postdatasucfun function is the callback function after the request succeeds, error 0 is successful, the request is not 0, the request fails to close the new blank window
Apple Safari Browser window.open problem