v-if
/v-else
- один для показа форматированного значения, другой для редактирования:<input v-if="edit" v-model="price" @blur="edit = false">
<input v-else :value="formatPrice(price)" @focus="edit = true">
data: () => ({
edit: false,
price: 666,
}),
methods: {
formatPrice: price => `${(+price).toLocaleString()} руб.`,
},
embedded=true
<iframe src="https://docs.google.com/viewerng/viewer?url=https://cit.tsn.47edu.ru/doc/Programma_provedenia_regionalnykh_UTS_24_11_2018.docx&embedded=true">
</iframe>
<iframe src="https://view.officeapps.live.com/op/embed.aspx?src=https://cit.tsn.47edu.ru/doc/Programma_provedenia_regionalnykh_UTS_24_11_2018.docx">
</iframe>
const puppeteer = require('puppeteer');
(async () => {
const browser = await puppeteer.launch({headless: false});
const page = await browser.newPage();
await page.goto('https://www.instagram.com/accounts/login/');
await page.waitFor('input[name="username"]');
await page.focus('input[name="username"]');
await page.keyboard.type('login111');
await page.focus('input[name="password"]');
await page.keyboard.type('password');
await page.click('button[type="submit"]');
await new Promise(r => setTimeout(r, 5000));
await browser.close();
})();
localStorage.setItem('toDo', '["Дело номер один", "Дело номер два"]');