Warning: file_get_contents(/data/phpspider/zhask/data//catemap/9/javascript/363.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

Warning: file_get_contents(/data/phpspider/zhask/data//catemap/0/assembly/5.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 在android firefox上使用jquery.smartabnner创建smartbanner_Javascript_Jquery_Django_Mobile - Fatal编程技术网

Javascript 在android firefox上使用jquery.smartabnner创建smartbanner

Javascript 在android firefox上使用jquery.smartabnner创建smartbanner,javascript,jquery,django,mobile,Javascript,Jquery,Django,Mobile,我使用jquery.smartbanner在移动网站上显示smartbanner。它适用于ios、windows phone和android默认浏览器。但当我在android上用Firefox检查时,我没有看到smartbanner。我也在Firefox上用user agent switcher检查它,当我将user agent设置为: Mozilla/5.0 (Android; Linux armv7l; rv:9.0) Gecko/20111216 Firefox/9.0 Fennec/9.

我使用jquery.smartbanner在移动网站上显示smartbanner。它适用于ios、windows phone和android默认浏览器。但当我在android上用Firefox检查时,我没有看到smartbanner。我也在Firefox上用user agent switcher检查它,当我将user agent设置为:

Mozilla/5.0 (Android; Linux armv7l; rv:9.0) Gecko/20111216 Firefox/9.0 Fennec/9.0
假装是android Firefox,然后我就能看到结果了。这个问题只出现在移动firefox上。此浏览器使用什么类型的用户代理?也许我用错了

我将jQuery1.7.2与smartbanner一起使用

我还使用以下脚本启用横幅:

$.smartbanner({
    hideOnInstall: false, // Hide the banner after "VIEW" is clicked.
    author: "ddd", // What the author of the app should be in the banner (defaults to <meta name="author"> or hostname)
    appendToSelector: '#appBanner', //Append the banner to a specific selector
    daysHidden: 0, // Duration to hide the banner after being closed (0 = always show banner)
    daysReminder: 0, // Duration to hide the banner after "VIEW" is clicked *separate from when the close button is clicked* (0 = always show banner)
    button: 'ZOBACZ', // Text for the install button
    price: 'DARMOWY', // Price of the app
    inAppStore: 'w App Store', // Text of price for iOS
    inGooglePlay: 'w Google Play', // Text of price for Android
    inWindowsStore: 'w the Windows Store', //Text of price for Windows
    icon: "{{ STATIC_URL }}/mobile/images/multiapp.png"
})
编辑1:


有什么工具可以在android上使用firefox调试js吗?

要使用桌面firefox远程调试firefox android,您可以遵循以下简单明了的教程:


您可以使用桌面Firefox远程调试FF Android:@FrancescoMM好极了,我会检查这一个。哈哈,也许我应该把它写下来作为答案,然后拿到赏金!:你解决问题了吗?还没有,我还有其他事情要做:但我相信这是你应得的。添加一个答案。