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.
我一直在从事我的科学展览项目,该项目将在 3 天内到期,我需要帮助。我使用 charCodeAt(),但是我不知道如何编写将使用密钥和 charCodeAt() 来创建新代码的代码。请帮忙。
var plainText = "watergate"; var cipherText = ""; for ( var i = 0; i < plainText.length; i++ ) cipherText += String.fromCharCode( plainText.charCodeAt(i) + 42 );