js中的函数 本质函数实际上是一个Function对象 函数不定义return默认返回undefined 定义函数方法有多种方法可以定义函数 函数声明(函数语句)12345function name([param[, param[, ... param]]]) { statements }function sayHello() { console.log("Hello& 2025-06-15 学习 #前端 #js
dom_学习 概念什么是dom,dom全名Document Object Model(文档对象模型),是浏览器提供的以编程方式操作网页内容的接口 例如: 1<p id="intro">你好,世界!</p> 12const para = document.getElementById("intro");para.textContent = &quo 2025-06-14 学习 #前端 #js
Hello World Welcome to Hexo! This is your very first post. Check documentation for more info. If you get any problems when using Hexo, you can find the answer in troubleshooting or you can ask me on GitHub. Quick 2025-05-31