Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit 2039f4c

Browse files
committed
不使用iframe
1 parent 6c82c80 commit 2039f4c

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

websites/code/studygolang/template/articles/detail.html

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -192,7 +192,8 @@ <h3><span class="cmtnum">{{.article.Cmtnum}}</span>条评论</h3>
192192
// 文章链接,在本站的 iframe 中打开
193193
$('#wrapper .content').on('mousedown', 'a', function(evt){
194194
var url = $(this).attr('href');
195-
$(this).attr('href', '/wr?u='+url);
195+
// $(this).attr('href', '/wr?u='+url);
196+
$(this).attr('href', url);
196197
$(this).attr('target', '_blank');
197198
});
198199
});

0 commit comments

Comments
 (0)