<script>
funciton cs(type){
if (type==1){
alert("中止程序");
exit();//这句js应该没有的,有没有类似于php跳出程序的代码
}
document.write("执行程序正文内容");
}</script>