Warning: file_get_contents(/data/phpspider/zhask/data//catemap/2/jquery/72.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
如何在phonegap index.html中使用jquery internal?_Jquery_Html_Cordova - Fatal编程技术网

如何在phonegap index.html中使用jquery internal?

如何在phonegap index.html中使用jquery internal?,jquery,html,cordova,Jquery,Html,Cordova,我刚刚加入phonegap,我想要一个构建的测试应用程序。我写了一些代码index.html,它可以在web浏览器上正常运行。但是在xcode中。或者模拟器没有运行。检查一下。我的代码 <html> <head> <script type="text/javascript" src="jquery-1.7.2.js"></script> <script type="text/javascript"> var a=0; $(doc

我刚刚加入phonegap,我想要一个构建的测试应用程序。我写了一些代码index.html,它可以在web浏览器上正常运行。但是在xcode中。或者模拟器没有运行。检查一下。我的代码

    <html>
<head>
<script type="text/javascript" src="jquery-1.7.2.js"></script>
<script type="text/javascript">
var a=0;
$(document).ready(function(){
  $(".class").click(function(){
if(a===0){
        $("#abc").css({"position":"absolute","height":"500px"});
    a=1;
}else
{    
    $("#abc").css({"position":"absolute","height":"50px"});
    a=0;
}
});

});

</script>
<script type="text/javascript">
function kkk(){

alert("okey");
}


</script>


</head>

<body>
<h2>This is a heading</h2>
<p>This is a paragraph.</p>
<p>This is another paragraph.</p>
<button id="abc" class="class" onclick="kkk()">Click me</button>
<button id="abd" style="position:absolute; left:250px;width:100px"> me</button>




</body>
</html>

var a=0;
$(文档).ready(函数(){
$(“.class”)。单击(函数(){
如果(a==0){
css({“位置”:“绝对”,“高度”:“500px”});
a=1;
}否则
{    
css({“位置”:“绝对”,“高度”:“50px”});
a=0;
}
});
});
函数kkk(){
警惕(“okey”);
}
这是一个标题
这是一段

这是另一段

点击我 我

任何建议都将不胜感激。

使用phonegap并收听设备日常通话。然后在处理程序中执行js