当前位置:网站首页>JS basic learning script
JS basic learning script
2022-06-11 08:10:00 【.---】
<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8">
<title>day1demo4</title>
<script> function myFunction(){
document.getElementById("clickOne").innerHTML=" My first one JavaScript function "; } </script>
</head>
<body>
<h1> my Web page </h1>
<p id="clickOne"> A paragraph .</p>
<button type="button" onclick="myFunction()"> Click here </button>
</body>
</html>
script It will be called directly at run time , But the functions inside need to be operated and called by ourselves
For example, here we click the button to realize myFunction Function and then Id by clickOne The label of changes its content
边栏推荐
- Xshell7 和 Xftp7要继续使用此程序,您必须应用最新的更新或者使用新版本
- TypeScript-类型别名
- DAMENG 数据库启停
- JSP development model
- 使用特殊字符拼接字符串“+“
- mpi
- Summary of embedded software interview questions
- Typescript class and interface, class and generic, interface merging
- How many of the 50 questions about network knowledge can you answer correctly?
- 避免list的并发修改异常的几种方式
猜你喜欢

Sign in system design: how to draw the sign in function

Bladed入门教程(视频)

2022.6.7 特长生模拟

Data visualization and Matplotlib

Summary of embedded software interview questions

2022.6.7 special student simulation

进程控制:进程等待(回收子进程)

C language - Growth Diary -02- function

【 史上最全的ENSP【安装图解】!】

Tidb cloud launched Google cloud marketplace, empowering global developers with a new stack of real-time HTAP databases
随机推荐
Development of sylixos SD device driver
Typescript keyboard mapping
Thoroughly remember the difference between ImageView background and SRC
Layout of code setting constraintlayout_ constraintDimensionRatio
空间几何
Collation of basic knowledge of intermediate development of Andrews (for interview)
C language to achieve three piece chess (not artificial mental retardation ha ha ha)
Summary of knowledge points of customized ViewGroup - continuously updated
Figure seamless database integration tushare interface
TypeScript-类和接口、类和泛型、接口合并现象
C language to achieve a simple game - minesweeping
Image data enhancement (translation, rotation, brightness transformation, flipping, adding Gaussian noise, scaling, cropping)
Study the Analects of entanglement
How to do well in empty state design? Look at this comprehensive summary
Alchemy experience (model training of deep learning) the necessity of timely adjusting training parameters for some situations (the adjustment of learning rate LR is the primary) summarizes some metho
关于网络知识的50个问答题,你能答对几个?
E regression test of this featured app
Typescript configuring ts in koa and using koa router
C. Managing history (greedy / hashing / thinking / good questions)
Summary of evaluation index knowledge points in target detection: summary of IOU cross overlap unit and map/ap/tp/fp/np