密码框不能获取到#及之后的内容?

小程序 文章 2022-02-08 17:20 272 0 全屏看文

AI助手支持GPT4.0

密码框不能获取到#及之后的内容?The password box cannot get the content after # and after?

密码框不能获取到#及之后的内容?

开发登录的过程中,如果密码框中输入#号,则#号之后的字符无法获取。由于对接系统的密码允许#的存在,该如何解决呢?

In the process of development login, if the # number is entered in the password box, the characters after the # number cannot be obtained. Due to the existence of the password permission # of the docking system, how to solve it?

回答:

Mr.Zhao:

有#号啊

呵呵:
 <input class="txt" type="password" placeholder="密码" name="password" />
微喵网络:

上代码片段

呵呵:<input class="txt" type="password" placeholder="密码" name="password" />
微喵网络:调试看看能不能获取到全部内容,看看接口入参里是不是全部?
呵呵:调试发现,未输入#号时,可正常获取,但是输入#后,则#及其后面的不会获取到,感觉被截掉了!
微喵网络:获取内容的代码发出来看看
呵呵:谢谢,找到原因了!url的问题

-EOF-

AI助手支持GPT4.0