Home > Article > Backend Development > A short story about JavaScript, JavaScript story_PHP tutorial
<span>妈妈:Netscape公司</span>
<span>原名:LiveScript</span>
<span>更名原因:想沾Java的光</span>
<span>亲缘关系:取了一个叫JavaScript的名字,其实和Java没什么血缘关系</span>
c816a7ba70fbc6b254eca2ce6ba0723a
alert('0');
document.write("asdfds");
2cacc6d41bbb37262a98f745aa00fbf0
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