移动端的监听

移动端监听

 done.addEventListener('tap', function () {

 

      var checkboxArray = [].slice.call(list.querySelectorAll('input[type="checkbox"]'));

                //var checkedValues = [];

                personSelectList = [];

                personSelectedNameList = [];

                checkboxArray.forEach(function (box) {

                    var obj = $(box.parentNode);

                    if (box.checked) {

                        personSelectList.push(obj.data("value"));

                        personSelectedNameList.push(obj.data("name"));

                    }

                });

                //获得父页面的webview

                var view = plus.webview.currentWebview().opener();

                mui.fire(view,'doit',{

                    personIds:personSelectList.join(","),

                    personNames:personSelectedNameList.join(",")

                });

localStorage.setItem("selectPerson","");

                mui.back();

            }, false);

 

 

 

//调用

window.addEventListener('doit',getPageValue);

posted on 2019-05-15 15:44  梦回太古  阅读(179)  评论(0编辑  收藏  举报

导航