let arr = str.split('|');
let [word1, word2 ] = 'фраза 1 | слово 2'.split('|');
let [word1, word2, ...otherWords] = 'фраза 1 | фраза 2 | фраза 3'.split('|');
const skipButtons = player.querySelector('[data-skip]');
function sum(...values) {
const s = values.reduce((acc, n) => acc + n, 0);
const f = sum.bind(null, s);
f.valueOf = () => s;
return f;
}
var formData = new FormData();
var imagefile = document.querySelector('#file');
formData.append("image", imagefile.files[0]);
axios.post('upload_file', formData, {
headers: {
'Content-Type': 'multipart/form-data'
}
})
const getDateOfNearestDay = (day, date = new Date()) =>
new Date(
date.getFullYear(),
date.getMonth(),
date.getDate() + ((7 + day - date.getDay()) % 7)
);
const dateOfNearestSaturday = getDateOfNearestDay(6);
export default {
data(){
return {
blockBtn: false
}
},
methods: {
async isWait(url) {
this.blockBtn = true;
let dosomething = await fetch(url)
this.blockBtn = false;
}
}
}
export default {
data(){
return {
blockBtn: false
}
},
methods: {
isWait(url) {
this.blockBtn = true;
let dosomething = fetch(url).then(() => {
this.blockBtn = false;
});
}
}
}