26 lines
550 B
TypeScript
26 lines
550 B
TypeScript
import { createApp } from './lib/petite-vue.es.js'
|
|
|
|
createApp({
|
|
$delimiters: ['{|', '|}'],
|
|
urlParams: new URL(location.href).searchParams,
|
|
save
|
|
}).mount()
|
|
|
|
function save(text: string) {
|
|
console.log(text)
|
|
}
|
|
|
|
const s: string = 'test-string'
|
|
save(s)
|
|
|
|
for (let i = 0; i < 10; i++) {
|
|
setTimeout(function () {
|
|
console.log(i);
|
|
}, 100 * i);
|
|
}
|
|
|
|
// p = new URL(location.href).searchParams
|
|
// id = p.get('id')
|
|
|
|
// fetch('http://localhost:8125/api/system/poll/service/pclt-0001').
|
|
// then((res) => res.json()).then((data) => console.log(data))
|