有什么办法在文本字段中键入“ +”?

问题描述

|
when i type \"name+2\" in text field and submit i get \"name 2\" in my controller

is there any way to send \"name+2\" like html decoded... i dono....
    

解决方法

        您是否使用GET请求? POST请求不应有此类问题,因为不会以HTML方式对参数进行编码。     ,        
+ Returns + in HTML
试试看,它应该在您的代码中起作用。