Warning: file_get_contents(/data/phpspider/zhask/data//catemap/3/html/74.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
Javascript 未在手机中单击链接_Javascript_Html_Css_Jquery Mobile_Samsung Mobile - Fatal编程技术网

Javascript 未在手机中单击链接

Javascript 未在手机中单击链接,javascript,html,css,jquery-mobile,samsung-mobile,Javascript,Html,Css,Jquery Mobile,Samsung Mobile,我为我的玩家建立了一个建议按钮,你可以现场查看。它在我最好的朋友的iPhone上工作,因为我没有现代手机,它在我的broswer的设备模式下工作,但是没有列出似乎有问题的特定设备。使用android的用户报告说它也在那里工作 我使用的是jQuery手机,问题是三星galaxys3neo在使用Chrome浏览器时产生的 HTML是: <a id="search_btn" data-role="button" class="ui-btn ui-corner-all ui-shadow ui-b

我为我的玩家建立了一个建议按钮,你可以现场查看。它在我最好的朋友的iPhone上工作,因为我没有现代手机,它在我的broswer的设备模式下工作,但是没有列出似乎有问题的特定设备。使用android的用户报告说它也在那里工作

我使用的是jQuery手机,问题是三星galaxys3neo在使用Chrome浏览器时产生的

HTML是:

<a id="search_btn" data-role="button" class="ui-btn ui-corner-all ui-shadow ui-btn-inline ui-icon-search ui-btn-icon-left">Show me the players</a>
有什么想法吗?我一点也不知道。可能是因为我使用的是
a
标签而不是真正的按钮?

试试:

$(document).ready(function(){
     var self = this;
     $("#search_btn").click(function(){
        self.alert("marievi leeeme!"); // that user can not even see this!
        var slot = 0;
     });
});

谢谢你的回答,但是当我使用它时会产生一个错误:
uncaughttypeerror:self.alert不是一个函数
window.alert(“marievi leeeme!”)呢?我将询问该用户并报告。
$(document).ready(function(){
     var self = this;
     $("#search_btn").click(function(){
        self.alert("marievi leeeme!"); // that user can not even see this!
        var slot = 0;
     });
});