WebStorm 火狐瀏覽器
<!DOCTYPE?HTML>
<html>
<head>
<meta?http-equiv="Content-Type"?content="text/html;?charset=utf-8"?/>
<title>window.open</title>
<script?type="text/javascript">
??function?Wopen(){
????window.open('http://www.xianlaiwan.cn','_blank','width=600,height=400,left=0px,top=100px')??
??}?
</script>
</head>
<body>
????<input?name="button"?type="button"?onClick="Wopen()"?value="點擊我,打開新窗口!"?/?>
</body>
</html>就上面這段代碼,在WebStorm里用火狐打開總是顯示亂碼,但是用ie和chrome都正常顯示。
在notepad++用火狐打開又能正確顯示。
所以WebStorm和火狐不兼容還是怎么的,之前用也有出現這種情況,有些能打開有些不能。
2016-10-28
你可以在火狐點擊查看,然后選擇文字編碼,再點擊Unicode就可以正確顯示文字了。
2016-10-28
function?Wopen(){
????window.open('http://www.xianlaiwan.cn','_blank','width=600,height=400,left=0px,top=100px')??
?var Wopen=Wopen;
if(Wopen=false)
{
document.write("已打開窗口");}
else{
document.write("未打開窗口");
??}?