php课程---JavaScript改变HTML中的元素
2024-08-22 19:16:49
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<script>
function myfunction()
{
document.getElementById("demo").innerHTML = "亲爱的,我在听歌!";
}
</script>
</head>
<body>
<h1>My Wed Page</h1>
<p id="demo">你在干嘛?</p>
<button type="button" onclick="myfunction()">一定要点这里哟!</button> </body>
</html>
最新文章
- Redis配置文件redis.conf
- C++11智能指针读书笔记;
- NOIP 考前 数据结构复习
- 优秀的Markdown编辑器MarkdownPad2免费版使用全功能
- 关于ADO.NET的基本介绍
- hadoop中MapReduce中压缩的使用及4种压缩格式的特征的比较
- ServletContext当全局变量的使用
- SpringMVC项目接入Springfox实战遇到的问题集合
- iOS之UITableView带滑动操作菜单的Cell
- UVALive3516Exploring Pyramids(dp)
- linux 日志查看总结
- j2ee网站项目首页如何直接使用action
- 599. Minimum Index Sum of Two Lists
- 解决微信公众号授权登录和开放平台微信第三方应用授权登录获取到的用户Openid关联问题
- Windows10用fiddler抓包Android应用(解决手机设置代理后无法上网,设置只抓app包)
- MySQL复制表-SELECT INTO FROM
- hive vs hbase
- 【Ubuntu】PHP环境安装-phpstudy for linux版
- mint-ui Picker的使用
- 在UnrealEngine4中使用Google Protobuf