{
template: `
<div>
<preloader v-if="!pageData" />
<div v-else >
...
</div>
</div>
`,
data() {
return {
pageData: null
}
},
async mounted() {
this.pageData = await getData()
}
}
const obj = {}
obj['z'] = {}
obj['a'] = {}
obj['b'] = {}
for (var property in obj) {
if (obj.hasOwnProperty(property)) {
console.log(property) // "z" "a" "b"
}
}
obj['1'] = {}
obj['0'] = {}
for (var property in obj) {
if (obj.hasOwnProperty(property)) {
console.log(property) // "0" "1" "z" "a" "b"
}
}const map = new Map()
map.set('z', {})
map.set('a', {})
map.set('b', {})
map.forEach((val, key) => {
console.log(key) // "z" "a" "b"
})
map.set('1', {})
map.set('0', {})
map.forEach((val, key) => {
console.log(key) // "z" "a" "b" "1" "0"
})
The Blob.size property returns the size in bytes of the Blob or a File.
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'
}
})<div id="app" @wheel.prevent="wheel"></div>
git init && git commit --allow-empty -m "Initial commit"git submodule add -b master git@github.com:<USERNAME>/<USERNAME>.github.io.git dist# Build the project.
yarn build
# npm run build
# Go To dist folder
cd dist
# Add changes to git.
git add .
# Commit changes.
git commit -m "rebuilding site $(date)"
# Push source and build repos.
git push origin master