(function($, doc) {
$.init();
$.ready(function() {
var ring_Picker = new $.PopPicker();
ring_Picker.setData([1,2,3,4,5,6,7,8,9,10]);
var ringLi = document.getElementById("ringLi");
var ringspan = document.getElementById("ring-span");
ringLi.addEventListener('tap', function(event) {
ring_Picker.show(function(items) {
ringspan.innerHTML = JSON.stringify(items[0]) + "次";
});
}, false);
});
})(mui, document);
在手机上测试的时候报错 “$.PopPicker is not a constructor”
4***@qq.com (作者)
在html页面把<script src="jquery.js"><script>放到所有所有<script></script>的最前面
2017-04-12 11:40
付楚
放在最前面了,还是不行呢
2018-08-09 10:13