感觉和Android开发中的findViewById类似,假设JS中的document为Android中的Context上下文对象,那么通过document.getElementById就是通过控件的ID获得控件对象了
2016-01-13
<form>
<input type="button"/"text"/"password" value="框内显示的内容" onclick="鼠标点击后调用的函数"/>
</form>
function hidetext(){Object.style.display="none"};
function showtext(){Object.style.display="block"};
<input type="button"/"text"/"password" value="框内显示的内容" onclick="鼠标点击后调用的函数"/>
</form>
function hidetext(){Object.style.display="none"};
function showtext(){Object.style.display="block"};
2016-01-13
var mymessage=confirm("你是女士?") ;我是这么写的
2016-01-12
<input type="button" value="点击我" onclick="contxt()" /> o了
2016-01-12
已采纳回答 / qq_心城九事_0
这样吗?你是if条件句里的“=”写错了应该用“==”,你再试试<script type="text/javascript"> window.onload =function () {var a= confirm("你要打开新的连接吗?");if(a==false){ window.open('http://www.baidu.com','_blank','width=600,height=400,top=150,left=100,menubar=no,toolbar=yes, status=y...
2016-01-12
已采纳回答 / YoungDee67
int x,y,temp;temp=x;x=y;y=temp; 或者int temp=x;x=y;y=temp;或者int x,y;x=x+y;y=x-y;x=x-y;
2016-01-12