ГЩ
var arr = str.split("");
зачет тогда вот так делать и переводить в массив
типа
[].forEach.call('abc',console.log)
Size: a a a
ГЩ
[].forEach.call('abc',console.log)
๖
▲
АК
R
R
const axios = require('axios');
(async () => {
try {
const { data } = await axios.post('http://localhost:4000/api/fileupload',
{
fileName: 'file',
dirName: 'src',
file: './uploads/ci.jpg'
},
{
headers: { 'Content-Type': 'form-data' },
}
)
console.log(data);
} catch (err) {
console.log(err);
}
})();
▲
АК
▲
R
АК
ДК
ei
A
▲
ei
D
АК
АК
A