JS做Android手机开发

JavaScript010

JS做Android手机开发,第1张

webstrom主要是做web开发的吧,没听说可以用这个开发android应用,也可能是我没用过,不知道。Android开发主要是用Eclipse或者Android Studio开发的,教程的话百度一下,多的很。首先从搭建环境开始,下载Eclipse,sdk,jdk配置好环境后就可以进行开发了。百度一下Android环境搭建,教程很详细的。开发的教程很多的,不过要是自学的话,感觉比较慢,简单的参加个培训班,快速入门后,然后再深入的去了解和学习比较好。

望采纳。

<td id="mytd"></td>

<script type="text/javascript">

var tddom= document.getElementById('mytd')

var timer = null

tddom.onmousedown = function(){

timer = setTimeout( doStuff, 2000 )//这里设置时间

}

tddom.onmouseup = function(){

clearTimeout( timer )

}

function doStuff() {

alert('hello, you just pressed the td for two seconds.')

}

</script>