Solve the error of returning object after window.open
Just add a void declaration without return parameters in the outer layer of js.
By the way, the parameters of the window.open function are also listed here:
window.open function parameter list
window = object.open([URL ][, name ][, features ][, replace]]]])
URL: the URL address of the new window
name: the name of the new window, which can be Empty
featurse: attribute control string, where various attributes of the window are controlled. The attributes are separated by commas.
fullscreen= { yes/no/1/0 } Whether to full screen, the default is no
channelmode= { yes/no/1/0 } Whether to display the channel bar, the default is no
toolbar= { yes/no/ 1/0 } Whether to display the toolbar, the default is no
location= { yes/no/1/0 } Whether to display the address bar, the default is no
directories = { yes/no/1/0 } Whether to display the turn button , default no
status= { yes/no/1/0 } Whether to display the window status bar, default no
menubar= { yes/no/1/0 } Whether to display the menu, default no
scrollbars= { yes/no/1/0 } Whether to display scroll bars, the default is yes
resizable= { yes/no/1/0 } Whether the window can be resized, the default is no
width=number Window width (pixel unit)
height=number window height (pixel unit)
top=number window distance from the top of the screen (pixel unit)
left=number window distance from the left side of the screen (pixel unit)