html:<div>我已阅读并同意<a href="javascript:;" class="content">《项目协议书》</a></div>js:var str1 =[ ' <span class="coop_close">我知道啦</span>', '<div class="notice_word">' , '12345674859','</div>'].join("");var $coopNotice = $('a.content'); $coopNotice.on('click', function () { var $content =$('#notice-content'); $content.html(str1); return false;});var $coopNoticeClose = $('span.coop_close'); $coopNoticeClose.on('click', function () { $(this).parent().html('');});
添加回答
举报
0/150
提交
取消