1 Star 0 Fork 0

prcool/前端开发学习

加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
文件
该仓库未声明开源许可证文件(LICENSE),使用请关注具体项目描述及其代码上游依赖。
克隆/下载
js对象数组.html 708 Bytes
一键复制 编辑 原始数据 按行查看 历史
prcool 提交于 2021-09-11 21:02 +08:00 . 前端开发学习
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<title>Title</title>
</head>
<script>
var a = ['小明',1,true]
var b = {
name:'小明',
age:18,
sex:''
}
console.log(a)
console.log(b)
console.log(typeof(b))
function myFunction(c){
alert('hello world '+c)
}
function Func2(){
let x = 3
return x
}
</script>
<body>
<button onclick="myFunction(document.getElementById('text').value)" width='10'>你好</button>
<input type="text" id="text">
<p>
这是一个段落
<script>document.write(Func2())</script>
</p>
<button onclick="this.innerHTML=Date()">The time is?</button>
</body>
</html>
Loading...
马建仓 AI 助手
尝试更多
代码解读
代码找茬
代码优化
1
https://gitee.com/prcool/front-end-development-learning.git
git@gitee.com:prcool/front-end-development-learning.git
prcool
front-end-development-learning
前端开发学习
master

搜索帮助