1.js三种引入方式 代码 <!DOCTYPE html> <html> <head> <meta charset="utf-8"> <title></title> </head> <body> <!-- 行内式 --> <button type="button" onclick="console.log('小猪佩奇');">点击</button> <!--