document.execCommand("Copy") 监听用户是否复制
pageTree: {
get: function () {
return this.$parent.module.content || [];
},
set: function (newValue) {
this.$parent.module.content = newValue;
},
}, 数据劫持 监听数据变化
let ss=' 11'
ss.trim() 此方法可以去除首尾空格
axios设置请求头
let myHeaders = new Headers({
'Access-Control-Allow-Origin': '*',
'Content-Type': 'text/plain',
"x-obs-date": new Date().toUTCString()
});
fetch(fileLink, {
method:'GET',
headers:myHeaders,
}).then(res=>{
input[type=checkbox] { position: relative; width: 15px; height: 13px; margin-right: 5px; }
input[type=checkbox]::before { content: ''; position: absolute; top: 0; left: 0; width: 14px; height: 14px; text-align: center; color: --nav-checkbox-color; border-radius: 2px; border: 1px solid $--nav-checkbox-color; cursor: pointer; }
input[type=checkbox]:checked::before { color: --nav-active-color; content: '✓'; font-size: 3px; border-color: $--nav-active-color; }