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.
是否可以有一个带有两个类的 HTML 文本框?
<input type="text" name="inputxt" class="class1" class="class2">
这样您就可以应用两个不同的 jQuery 脚本来“在”一个文本框上运行。
通过这个添加2个不同的类
<input type="text" name="inputxt" class="class1 class2">
可能<input type="text" name="inputxt" class="class1 class2">