简体   繁体   中英

Disabling Ajax in JQuery Mobile not working

This is header:

<script src="/blog/media/jui/js/jquery.min.js" type="text/javascript"></script>
  <script src="/blog/media/jui/js/jquery-noconflict.js" type="text/javascript"></script>
  <script src="/blog/media/jui/js/jquery-migrate.min.js" type="text/javascript"></script>
  <script src="/blog/media/system/js/caption.js" type="text/javascript"></script>
  <script src="/blog/media/jui/js/bootstrap.min.js" type="text/javascript"></script>
  <script src="/blog/plugins/system/jcemediabox/js/jcemediabox.js?f164ea24e8567d41a795089153b69cd9" type="text/javascript"></script>
  <script src="/blog/templates/qkiz3-mobile/js/jquery-mobile-config.js" type="text/javascript"></script>
  <script src="/blog/templates/qkiz3-mobile/js/jquery.mobile-1.4.5.min.js" type="text/javascript"></script>

Content of jquery-mobile-config.js:

$(document).on("mobileinit", function() {
  $.mobile.ajaxEnabled = false;
});

Ajax is enabled and I cant disable it with jquery-mobile-config.js script. Chrome Developer Tool report error with this script: Uncaught TypeError: undefined is not a function

jquery-noconflict.js causes problem. After delete line with this library Ajax stops working.

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM