FazBrowse GitHub Viewer
|
Trending
|
URL:
|
Home
Tools:
[Download Repo ZIP]
[View Raw Code]
[Original HTTPS Page]
javascript/question/bind_demo at master · getcode0302/javascript · GitHub
getcode0302
javascript
Repository navigation
Code
Pull requests
Actions
Projects
Wiki
Security and quality
Insights
Expand file tree
Breadcrumbs
javascript
/
question
/
bind_demo
Copy path
More file actions
More file actions
Latest commit
History
History
History
25 lines (24 loc) · 637 Bytes
Breadcrumbs
javascript
/
question
/
bind_demo
Copy path
File metadata and controls
25 lines (24 loc) · 637 Bytes
Raw
Copy raw file
Download raw file
Open symbols panel
Edit and raw actions
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
<!doctype html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="Generator" content="EditPlus®">
<meta name="Author" content="">
<meta name="Keywords" content="">
<meta name="Description" content="">
<title>Document</title>
</head>
<body>
<input type="button" id="button" />
<input type="text" id="text" value="bind的使用"/>
<script type="text/javascript">
<!--
var button = document.getElementById("button"),
text = document.getElementById("text");
button.onclick = function() {
alert("id:"+this.id+" \nvalue:"+this.value); // 弹出text
}.bind(text);
//-->
</script>
</body>
</html>
Back
|
FazBrowse Home
|
New Git URL