2016-04-22 23 views

回答

1

對於這個問題,你可以使用<noscript>標籤。所以f.e:

<noscript> 
<p>JS is switched off in a browser</p> 
</noscript> 
<script type="text/javascript"> 
...put here js code, which will be executed if js will be enabled... 
</script> 
+0

問題是,我不能把腳本標籤中的php標籤。 – Seeyar

+0

你可以看到你如何做到這一點http://stackoverflow.com/questions/3241422/include-php-inside-javascript-js-files –