JS基础知识充电站 1.javascript alert弹出对话框时确定和取消两个按钮返回值? 用的不是alert对话框,是confirm confirm(str); 参数str:你要说的话或问题: 返回值:bool类型,返回用户是否点击确定.如果点击确定,返回true,如果点击取消或小叉子关闭对话框,返回false: var r=confirm("确认还是取消?") console.log(r); 2.js文件中插入html代码 var div = document.createEl…
什么是Node.js 官网介绍: Node.js® is a JavaScript runtime built on Chrome's V8 JavaScript engine. Node.js uses an event-driven, non-blocking I/O model that makes it lightweight and efficient. Node.js' package ecosystem, npm, is the largest ecosystem of open…