--- tags: jQuery --- ###### tags: `jQuery` # jQuery Each ### 遍歷A組件裡的所有子組件並複製標題 到B組件裡的所有子組件並依序在上方插入 ``` $(".modAcTitle").each(function(i) { var $content = $('.content').eq(i); $(this).clone().prependTo($content); }); ``` 
×
Sign in
Email
Password
Forgot password
or
By clicking below, you agree to our
terms of service
.
Sign in via Facebook
Sign in via Twitter
Sign in via GitHub
Sign in via Dropbox
Sign in with Wallet
Wallet (
)
Connect another wallet
New to HackMD?
Sign up