- 不用alert,用console.log()
<!DOCTYPE html> <html> <head> <script type="text/javascript"> function showLog(message){ console.log(message); } function test(name){ showLog(name); } test("hello"); </script> </head> <body> </body> </html>
时间: 2024-10-23 12:59:49