javascript中alert文本的换行问题/n

来源:互联网 发布:电脑上可以淘宝直播吗 编辑:程序博客网 时间:2024/06/17 05:03

解决很简单:


<script>alert('你好//n')</script>

将/n换为//n即可!!