mirror of
https://gitee.com/tawords/tawords-docs
synced 2025-09-14 05:51:37 +08:00
文件路径规范化
This commit is contained in:
7
docs/manual/6. 【清单 ToDo】/随笔记/js 强制在新窗口打开链接.md
Normal file
7
docs/manual/6. 【清单 ToDo】/随笔记/js 强制在新窗口打开链接.md
Normal file
@@ -0,0 +1,7 @@
|
||||
```javascript
|
||||
// 在新窗口中打开链接
|
||||
$('body').on('click', '.markdown-body a', function (e) {
|
||||
e.preventDefault();
|
||||
window.open(this.href, '_blank');
|
||||
});
|
||||
```
|
Reference in New Issue
Block a user