当前位置:网站首页>Js基础学习Script
Js基础学习Script
2022-06-11 08:04:00 【.---】
<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8">
<title>day1demo4</title>
<script> function myFunction(){
document.getElementById("clickOne").innerHTML="我的第一个 JavaScript 函数"; } </script>
</head>
<body>
<h1>我的 Web 页面</h1>
<p id="clickOne">一个段落。</p>
<button type="button" onclick="myFunction()">点击这里</button>
</body>
</html>
script在运行的时候会被直接调用,但是里面的函数需要我们自己去操作调用
比如这里是我们点击了按钮实现了myFunction函数然后把Id为clickOne的标签改变其内容
边栏推荐
- 签到体系设计:签到功能该怎么画
- 安卓初中级开发基础知识整理(面试自用)
- Typescript declaration merge
- Getting started with bladed tutorial (video)
- Methods to improve training speed in deep learning and techniques to reduce video memory (suitable for entry-level trick without too many computing resources)
- Detailed explanation of character function and string function (including simulation implementation)
- TypeScript-类和接口、类和泛型、接口合并现象
- 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
- 运筹学导论
- Using Tkinter to realize guessing numbers game
猜你喜欢

Bubble sorting with C language

TiDB Cloud 上线 Google Cloud Marketplace,以全新一栈式实时 HTAP 数据库赋能全球开发者

Storage of floating point in memory

SylixOS SD设备驱动开发

Data visualization and Matplotlib

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

The solution of "no startup device" after running Bochs

Zero foundation self-study SQL course | union joint query

Image data enhancement (translation, rotation, brightness transformation, flipping, adding Gaussian noise, scaling, cropping)

Using Tkinter to realize guessing numbers game
随机推荐
TypeScript-分布式条件类型
Typescript namespace
Typescript null and undefined
[transfer] two-way merging and sorting of C language
C language - growth diary-04- preliminary exploration of local variables (local variables)
Request request object and response response object
Bladed入門教程(視頻)
2021-11-05 definition of cache
Remote office experience sharing | community essay solicitation
C language - Growth Diary -03- function definition and function prototype declaration
Lesson 1 about Xiaobai's C language
Opencv for face recognition
Tutoriel de démarrage bladed (vidéo)
Shell Programming Notes
Long dialogue in June 2017
如何开始参与开源社区
TypeScript-头文件使用细节
Summary of evaluation index knowledge points in target detection: summary of IOU cross overlap unit and map/ap/tp/fp/np
使用 COCO 数据集训练 YOLOv4-CSP 模型
【 史上最全的ENSP【安装图解】!】