因为标准就是这么规定的Event handler content attributes, when specified, must contain valid JavaScript code which, when parsed, would match the FunctionBody production after automatic semicolon insertion.简而言之 html元素 onclick 属性里面是 鼠标点击后要执行的 javascript 代码
因为标准就是这么规定的
简而言之 html元素 onclick 属性里面是 鼠标点击后要执行的 javascript 代码