天天看点

layer.open传递json报错java.lang.IllegalArgumentException: Invalid character found in the request target

var jsonData = JSON.stringify(res);
jsonData = encodeURIComponent(jsonData);

layer.open({
        type: 2
        ,title: '执行结果'
        ,area: ['750px', '450px']
        ,shade: 0
        ,maxmin: true
        ,content: 'show?res='+jsonData
       
    });