url传参特殊字符(#、%、&)处理

jsjavascript var str = $('#content').val(); str=str.replace(/\%/g,"%25"); str=str.replace(/\#/g,"%23"); str=str.replace(/\&/g,"%26"); var url="${rootname}/aa/ee.do?content="+str; ja
相关文章
相关标签/搜索