1)type:2 时打开新的html
2)向新的页面传递参数
3)参数中含有中文
layui.use('layer',function(){
var layer = layui.layer;
var test = layer.open({
type:2,
title:['xx申请'],
area:['800px','600px'],
content:'xxxx.html?uName=' + uname+ '&pwd=' + pwd+ '&method=' + method ,//对应问题1,2
contentType : 'application/json;charset=utf-8',//对应3
btn:['确定','取消'],
yes:function(test ,layerro){
layer.close(appSpare);
}
})
})