调用上一个页面的js方法

点击商品分类,弹出下框

调用上一个页面的js方法

 

点击确定,将选中的类别的name和唯一的code返回到上个页面

function save(){
        var ids = getIdSelections();
         jp.get("${ctx}/product/hzproduct/saveType?ids=" + getIdSelections()+"&>).text()), function(data){
               if(data.success){
                   var typeCodeList = data.body.typeCodeList;
                   var typeNameList = data.body.typeNameList;
                   jp.getParent().haha();
                   jp.close()
                   jp.success(data.msg); 
               }else{
                   jp.error(data.msg);
               }
               
           }) 
    }

通过jp.getParent().haha();来调用上个页面的haha()js方法

 

相关文章:

  • 2022-12-23
  • 2022-12-23
  • 2022-02-17
  • 2022-12-23
  • 2021-05-04
  • 2021-08-27
  • 2022-12-23
猜你喜欢
  • 2022-12-23
  • 2021-08-27
  • 2021-08-29
  • 2021-11-10
  • 2021-05-04
  • 2021-12-16
  • 2021-08-27
相关资源
相似解决方案