我有一種懶惰的形式,有兩個文本框。當我點擊一個按鈕時,我基本上用分隔符連接了兩個文本框。有沒有像一個特殊的分隔符,實際上不能在HTML文本框中輸入,即使是& #xxx;語法被使用?Javascript Escape Characters
0
A
回答
0
爲什麼要並置?如何使用JSON?
一種簡單,安全的級聯格式會
<length of the first string> <space> <first string> <second string>
例如
'abcd' + 'foo' => '4 abcdfoo'
0
不,如果你想禁止字符,你將不得不添加一些JavaScript來阻止他們進入。或者在加入之前將其從每個字段中刪除。
0
任何東西都可以被輸入到一個文本框,這就是爲什麼它是如此的重要,清理所有的用戶輸入。
相關問題
- 1. Javascript:忽略alt-characters
- 2. Escape NSString for javascript input
- 3. Android escape JavaScript字符串
- 4. 如何在Javascript ESCAPE 「逗號」
- 5. PHP preg_split utf8 characters
- 6. NSString get -characters
- 7. Howto display localized characters
- 8. Regex with Chinese characters
- 9. css renders with strange characters
- 10. escape <?php裏面的JavaScript代碼?
- 11. Javascripts escape exes
- 12. SQL ESCAPE「」
- 13. esding sed characters java not working
- 14. python check string contains all characters
- 15. django rest-framework api和unicode characters
- 16. html_entity_decode characters like Yuml vs&yuml
- 17. Unicode characters not showing in System.Windows.Forms.TextBox
- 18. Spotify Apps Api - encodeURI/escape
- 19. Escape $ in snippet
- 20. symfony2 translation escape dot
- 21. bash escape〜tilde
- 22. Rails params escape/unescape +
- 23. URI Escape C++ wstring
- 24. PHP fgetcsv escape'\'
- 25. escape&in url
- 26. python django escape unicode
- 27. Escape html和whitespace?
- 28. Best Ansi Escape開始
- 29. erlang中的Escape Html
- 30. YAML - Escape \雙引號
自然擴展到任意數量的字符串:'4 abcd 3 foo 3 bar'。但如果我必須對複雜數據進行字符串編碼(如果可以調用數組複合體),我仍然會使用JSON。 – Thilo 2010-10-24 03:30:57
這或多或少是我想要的。我現在必須看看JSON。謝謝。 – Shawn 2010-10-24 03:52:17