当前位置:网站首页>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
边栏推荐
- DAMENG 用户管理
- 使用特殊字符拼接字符串“+“
- Basic use of typescripy class
- JSP development model
- 放大镜子效果图
- Login and parameterization of interface test
- C language lesson 2
- Typescript class and interface, class and generic, interface merging
- In an activity, view postdelay will cause memory leakage, but will not affect the life cycle execution of the activity.
- TypeScript-unknown类型
猜你喜欢

批量拼接字符串

Xshell7 and xftp7 to continue using this program, you must apply the latest updates or use a new version

【案例解读】医疗单据OCR识别助力健康险智能理赔

(transformation) tree, binary tree and forest transformation principle

How to make hyperlinks in RichTextBox- How can I make a hyperlink work in a RichTextBox?

C language - Growth Diary -02- function

2022.6.6 特长生模拟

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

forEach 中 return 和 for 中 break

放大镜子效果图
随机推荐
C. Managing history (greedy / hashing / thinking / good questions)
Typescript distributed condition type
C- print 99 multiplication table
C language to achieve three piece chess (not artificial mental retardation ha ha ha)
TiDB Cloud 上線 Google Cloud Marketplace,以全新一棧式實時 HTAP 數據庫賦能全球開發者
Solve cannot import name 'multiheadattention' from 'tensorflow keras. layers‘
Typescript type protection
TypeScript-枚举
Xshell7 and xftp7 to continue using this program, you must apply the latest updates or use a new version
项目实训-克隆门
TypeScript-null和undefined
TypeScript-分布式条件类型
2021-10-24
Study the Analects of entanglement
Layout of code setting constraintlayout_ constraintDimensionRatio
Several ways to avoid concurrent modification exceptions of lists
TypeScript-接口和类型别名异同
TypeScripy-类的基本使用
TypeScript-头文件使用细节
2022.6.6 特长生模拟