web前端开发JS基础知识

1.常见的输出语句 (1)alert(); 弹出警告窗; (2)document.write();在文档中写入; (3)console.log();在控制台输出日志; 例如: alert(‘hello world’); document.write(‘hello world’); console.log(‘hello world’); 2.变量命名规则 (1)必须以字母,下划线或者$开头。 (2)
相关文章
相关标签/搜索