網頁程式除錯/Debug 設置中斷點/LOG提示的方法
網頁程式除錯/Debug 設置中斷點/LOG提示的方法
資料來源: https://vimsky.com/zh-tw/examples/usage/javascript-console-log-with-examples.html
LOG(JS)
<script>
var a = 2;
console.log(a);
</script>
中斷/對話盒(JS)
<script language="javascript">
alert('測試文字');
alert('測試文字第一行<br>測試文字第二行');
alert('測試文字第一行\n測試文字第二行');
</script>
One thought on “網頁程式除錯/Debug 設置中斷點/LOG提示的方法”
程式中bug的常用方法 [軟體除錯/分析 SOP]
寫紀錄(LOG)/改變狀態燈…
放中斷點