Closed LingboCN closed 4 years ago
I use requireJS , JQ3.4.1 and JQ Mobile 1.5.0-alpha my code like this.
require.config({ paths: { jquery: '/jquery', 'jquery.mobile': '/jquery.mobile-1.5.0-alpha.min', 'jquery.mobile-config': '/jquery.mobile-config', }, shim: { 'jquery.mobile-config': ['jquery'], 'jquery.mobile': ['jquery', 'jquery.mobile-config'] } }) require(['jquery', 'jquery.mobile'...], function($, ...) { ... $("body").bind("keyup", function(e) { if (e.which === 13) { $("#login").tap(); } }); $("#login").bind("tap", onLoginTap); ... })
I didn't know why throw err '$(...).tap is not a function'
jqm not is not correctly referenced
I use requireJS , JQ3.4.1 and JQ Mobile 1.5.0-alpha my code like this.
I didn't know why throw err '$(...).tap is not a function'