override javascript escape funcation

var oldescape = window.escape;

escape = function (sStr) {

    return oldescape(sStr).replace(/\+/g, '%2B').replace(/\"/g, '%22').replace(/\'/g, '%27').replace(/\//g, '%');

}

posted on 2013-12-24 09:37  freeliver54  阅读(352)  评论(0编辑  收藏  举报

导航