Home  >  Article  >  Backend Development  >  A short story about JavaScript, JavaScript story_PHP tutorial

A short story about JavaScript, JavaScript story_PHP tutorial

WBOY
WBOYOriginal
2016-07-13 10:23:59909browse

A short story about JavaScript, JavaScript story

<span>妈妈:Netscape公司</span>
<span>原名:LiveScript</span>
<span>更名原因:想沾Java的光</span>
<span>亲缘关系:取了一个叫JavaScript的名字,其实和Java没什么血缘关系</span>

Javascript small example

c816a7ba70fbc6b254eca2ce6ba0723a
alert('0');
document.write("asdfds");
2cacc6d41bbb37262a98f745aa00fbf0

Questions about javascript onclick event? There are examples

I changed it for you
You wrote it wrong here
if (a = 1) {
This is not a judgment but an assignment, it should be like this
if (a == 1) {

cb07111ca5ae5ef678bbf0d01d0237c0
var a = 1
function change() {
if (a == 1) {
form1.jj.value=" a=selected....";
a = 0;
}else{
form1.jj.value="a=unselected....";
a = 1 ;
}
}

2cacc6d41bbb37262a98f745aa00fbf0

7b4a91ef68a88a8adb9cbeae5be41b4c

c6184d010112f4e04df6f28fa40c6772Ahh
23b174da738d9b145a4789b8ae7cf9f1
f6eefb142cfb6656b5e290b8cf0009fd
f5a47148e367a6035fd7a2faa965022e

www.bkjia.comtruehttp: //www.bkjia.com/PHPjc/831964.htmlTechArticleA short story about JavaScript, JavaScript story mother: Netscape company’s original name: LiveScript Reason for name change: I want to be familiar with Java Relationship: I took a name called JavaScript, actually...
Statement:
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn