Code: write(s,d) 输出连续字符串
时间:2022-10-20 10:14:39|栏目:JavaScript代码|点击: 次
<script type="text/javascript">
<!--
function write(s,d)
{
d = d || "<br />";
document.write(s+d);
return function(s){
return write(s,d);
}
}
write("aaa")("bbb")("ccc")("ddd");
write("1",",")("2")("3")("4");
//-->
</script>
<!--
function write(s,d)
{
d = d || "<br />";
document.write(s+d);
return function(s){
return write(s,d);
}
}
write("aaa")("bbb")("ccc")("ddd");
write("1",",")("2")("3")("4");
//-->
</script>
栏 目:JavaScript代码
本文地址:http://www.codeinn.net/misctech/216789.html