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.
object.option[index].title=object.option[index].text
这是在 javaScript 中,需要转换为 jquery。请帮我。
假设 title 和 text 是各自元素的属性,试试这个:
$('#elem').attr('title', $('#other-elem').attr('text'));