Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
我正在使用 javascript 生成一个随机字符串,并使用 ajax post 方法将其发送到服务器。有什么方法可以防止该用户使用浏览器控制台查看发布变量?
不会。如果浏览器可以使用某些信息,那么该浏览器的用户也可以使用这些信息。
你不能,但如果这是你的目标,你可以以某种方式对其进行加密,使其更难破译。