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.
したがって、基本的には、切り捨てられたテキストを切り捨てたまま、切り捨てられる前にテキストの初期値を取得して rel 属性に詰め込もうとしています。
テキストを切り捨てる前に、関数がテキストの値を返すようにする方法がわかりません。
何か案は?
http://jsfiddle.net/TF6Rb/625/
何かをする前に、テキストをつかんで に詰め込んでrelみませんか?
rel
var text = el.html(); el.attr('rel', text); // etc