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
相關文章
相關標籤/搜索