這里的單引號可以換成雙引號嗎?open()方法不用分號;結(jié)束嗎?
<script?type="text/javascript">?window.open('http://idcbgp.cn','_blank','width=300,height=200,menubar=no,toolbar=no,?status=no,scrollbars=yes') </script>
<script?type="text/javascript">?window.open('http://idcbgp.cn','_blank','width=300,height=200,menubar=no,toolbar=no,?status=no,scrollbars=yes') </script>
2015-08-09
舉報
2015-08-10
當(dāng)然可以換成雙引號,測試一下就知道了。
分號本身可有可無,但是為了養(yǎng)成良好的編程習(xí)慣和頁面風(fēng)格,強(qiáng)烈要求加分號。