摘要: 1. JS写法 2.jquery写法 阅读全文
posted @ 2023-09-12 15:25 katesharing 阅读(31) 评论(0) 推荐(0)
摘要: 1. js 写法 //js写法 document.getElementById("btn1").addEventListener("click", function () { alert("This is Line1. \n Note:this is test"); }) document.getE 阅读全文
posted @ 2023-09-12 15:00 katesharing 阅读(137) 评论(0) 推荐(0)
摘要: 1. 在JS中,直接用\n就行 测试代码如下: 测试结果如下: 2. 在MVC中,要用</br> 参考网址: https://stackoverflow.com/questions/1841452/new-line-in-javascript-alert-box 阅读全文
posted @ 2023-09-12 11:43 katesharing 阅读(76) 评论(0) 推荐(0)