js概率执行代码访客进入网站的时候,按照30%的概率执行Ajs代码,否则不执行,直接打开网页.这个该怎么写?[解决办法]要不这样子:
<script>if(Math.floor(Math.random()*3)==0){alert('30%')}</script>