您的位置:首页 > Web前端

小记前端 URL 传参 中文乱码

2017-01-05 18:24 218 查看
 很老的话题 不多说了.. 记录一下而已~`

system.js 的

/**
* function encodeURIComponent(uriComponent)
* @param {String} uriComponent
* @type String
* @returns {String}
* @since   Standard ECMA-262 3rd. Edition
* @since   Level 2 Document Object Model Core Definition.
*/
function encodeURIComponent(uriComponent){return "";};
var str = encodeURIComponent($(".current-time").text());
url : xxxx/action?str=str


这样传递 后台直接接就好了
内容来自用户分享和网络整理,不保证内容的准确性,如有侵权内容,可联系管理员处理 点击这里给我发消息
标签: