我一直收到语法错误。每次运行 Javascript 时都缺少指数。
<script type="text/javascript">
function randomendtime(len) {
var chars = ["10.202", "11.121", "12.101", "13.111", "14.121", "15.097", "18.142", "20.926"];
return chars[ Math.floor(Math.random() * chars.length)];
}
var 2et = randomendtime(1);
document.write('<script type="text/javascript" src="http://www.example.com/' + 2et + '"><\/script>');
</script>