본문 바로가기

칼슘


function makeClipboardLink() { var tocLink = $('#toc a'); tocLink.each(function(i, aLink) { var regExp = /[\{\}\[\]\/?.,;:|\)*~`!^\-_+<>@\#$%&\\\=\(\'\"]/gi; var titleId = decodeURIComponent(aLink.href.substr(aLink.href.indexOf('#')+1)).replace(regExp,"\\$&"); var titleElem = $('#'+titleId); titleElem.append(''); }); }