url中的参数带有&连接符号处理

keyword:url 参数   连接符 
%26代替&,   %3F代替?    接受页面不需要改动任何,   &的asc码为%26.  ?的asc码为%3F.
如:
toUrlProject.action?url=nonTopicDetailPlanTask.action?projectInfo.id='+@moduleId+'&menuId=26
变为
toUrlProject.action?url=nonTopicDetailPlanTask.action %3FprojectInfo.id='+@moduleId+' %26menuId=26
内网评估审核系统提醒触发器参考
1.计划任务书
set @url='toUrlProject.action?url=nonTopicDetailPlanTask.action%3FprojectInfo.id='+@moduleId+'&menuId=26'
2.阶段性报告
set @url='toUrlProcessManage.action?url=detailJxwStage.action%3FstageId='+@moduleId+'&menuId=4028834c2ec785c5012ec7bfed9a0004'+'&sed=23'
3.监控点报告
set @url='toUrlProcessManage.action?url=detailJxwInspect.action%3FinspectId='+@moduleId+'&menuId=4028834c2ec785c5012ec7bfed9a0004'+'&sed=55'
4.验收申请审核
if(@status=24)
set @url='toUrlProcessManage.action?url=toTGAcceptOperDetail.action%3FprojectInfoId='+@projectId+'&menuId=4028834c2ec785c5012ec7bfed9a0004'+'&sed=57'
else
set @url='toUrlProcessManage.action?url=toFJAcceptOperDetail.action?%3FprojectInfoId='+@projectId+'&menuId=4028834c2ec785c5012ec7bfed9a0004'+'&sed=57'
5.验收记录
set @url='toUrlProcessManage.action?url=toAddAcceptresult.action%3FacceptRecordTemp.recordid='+@moduleId+'&menuId=4028834c2ec785c5012ec7bfed9a0004'+'&sed=57'
6.项目变更
set @url='toUrlProcessManage.action?url=toChangeEdit.action%3FcId='+@moduleId+'&menuId=4028834c2ec785c5012ec7bfed9a0004'+'&sed=61'
参考:

JavaScript中url 传递参数(特殊字符)解决方法

你可能感兴趣的:(url中的参数带有&连接符号处理)