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.
我正在努力摆脱第 2 行的错误。
我究竟做错了什么?
您需要转义第一个换行符(在打开的双引号之后):
$("#insert-rated-category"+voteit).html(" \ <select id='' name=''> \ <option value=''></option> \ </select> \ ");
编辑
您也必须在空行中转义换行符。谢谢@cHao。