js common methods

//OK + cancel

layer.confirm(msg,
      function(index) {
        layer.close(index);
        //TODD点击确定
      },
      function(index) {

       //TODD click to cancel
        return;
      }
     );

// only use the OK button

layer.alert(TODD,function(index){
        layer.close(index);
        //TODD
       });

// loop through the array

$.each(数组, function(i, row) {
    //TODD
  });

 

 

Guess you like

Origin http://43.154.161.224:23101/article/api/json?id=326517899&siteId=291194637