上一页 1 ··· 14 15 16 17 18 19 20 21 22 ··· 55 下一页
摘要: main.ts import { createApp } from 'vue' import App from './App.vue' import { createPinia } from 'pinia' const store = createPinia() const app = create 阅读全文
posted @ 2022-03-27 23:31 ascertain 阅读(80) 评论(0) 推荐(0) 编辑
摘要: web storage API: <script> for(let b = 0; b < 10; ++b) { localStorage.setItem(`vault-${b}`, `vaunt-${b}`) } console.log(localStorage.length) localStora 阅读全文
posted @ 2022-03-27 23:31 ascertain 阅读(20) 评论(0) 推荐(0) 编辑
摘要: main.ts import { createApp } from 'vue' import App from './App.vue' const app = createApp(App) type Filter = { format: <T extends any>(str: T) => stri 阅读全文
posted @ 2022-03-26 21:30 ascertain 阅读(84) 评论(0) 推荐(0) 编辑
摘要: import { onMounted } from 'vue' type Options = { elem: string } const base64 = (elem: HTMLImageElement) => { const canvas = document.createElement('ca 阅读全文
posted @ 2022-03-26 12:44 ascertain 阅读(140) 评论(0) 推荐(0) 编辑
摘要: <template> <div v-move class="box"> <div class="header"> </div> <div>zax</div> </div> </template> <script lang="ts" setup> import { ref, DirectiveBind 阅读全文
posted @ 2022-03-26 11:58 ascertain 阅读(116) 评论(0) 推荐(0) 编辑
摘要: vite.config.ts import { defineConfig } from 'vite' import vue from '@vitejs/plugin-vue' import * as path from 'path' // https://vitejs.dev/config/ exp 阅读全文
posted @ 2022-03-26 10:28 ascertain 阅读(168) 评论(0) 推荐(0) 编辑
摘要: 阅读全文
posted @ 2022-03-24 11:45 ascertain 阅读(12) 评论(0) 推荐(0) 编辑
摘要: Server端设置3s才返回数据 单线程 import requests, random, string, datetime def download(url): print('start') response = requests.get(url) print('complete') lst = 阅读全文
posted @ 2022-03-23 13:00 ascertain 阅读(93) 评论(0) 推荐(0) 编辑
摘要: 改造老旧教程案例: asyncio.gather import asyncio async def b(): print(5) await asyncio.sleep(2) print(55) return 5 async def p(): print(4) await asyncio.sleep( 阅读全文
posted @ 2022-03-23 11:35 ascertain 阅读(46) 评论(0) 推荐(0) 编辑
摘要: <!DOCTYPE html> <html lang="en"> <head> <meta charset="UTF-8"> <meta http-equiv="X-UA-Compatible" content="IE=edge"> <meta name="viewport" content="wi 阅读全文
posted @ 2022-03-22 23:11 ascertain 阅读(205) 评论(0) 推荐(1) 编辑
摘要: 使用Promise封装ajax function ajax (url) { return new Promise((resolve, reject) => { let xhr = new XMLHttpRequest() xhr.onreadystatechange = function () { 阅读全文
posted @ 2022-03-22 22:07 ascertain 阅读(21) 评论(0) 推荐(0) 编辑
摘要: 通用公式: a % b = a - int(a / b) * b 取整: 向下取整 -∞方向 floor(a/b) 取底除法Python 向零取整, 舍弃小数, 截断除法C Java Javascript 取模公式通用, 但是因为取整的区别, Python的取模跟其他语言不一样,Python真是怪胎 阅读全文
posted @ 2022-03-22 12:19 ascertain 阅读(167) 评论(0) 推荐(0) 编辑
摘要: 正常情况, 赋值给其他变量 public class B { public static void main(String[] args) { int bb = 5; int pp = ++bb; System.out.println(pp); } } public class B { public 阅读全文
posted @ 2022-03-22 10:56 ascertain 阅读(28) 评论(0) 推荐(0) 编辑
摘要: span width: fit-content line-height flex table grid transform 阅读全文
posted @ 2022-03-21 15:06 ascertain 阅读(23) 评论(0) 推荐(0) 编辑
摘要: <!DOCTYPE html> <html lang="en"> <head> <meta charset="UTF-8"> <meta http-equiv="X-UA-Compatible" content="IE=edge"> <meta name="viewport" content="wi 阅读全文
posted @ 2022-03-21 14:19 ascertain 阅读(29) 评论(0) 推荐(0) 编辑
摘要: <!DOCTYPE html> <html lang="en"> <head> <meta charset="UTF-8"> <meta http-equiv="X-UA-Compatible" content="IE=edge"> <meta name="viewport" content="wi 阅读全文
posted @ 2022-03-21 13:07 ascertain 阅读(35) 评论(0) 推荐(0) 编辑
摘要: margin <!DOCTYPE html> <html lang="en"> <head> <meta charset="UTF-8"> <meta http-equiv="X-UA-Compatible" content="IE=edge"> <meta name="viewport" cont 阅读全文
posted @ 2022-03-20 23:53 ascertain 阅读(23) 评论(0) 推荐(0) 编辑
摘要: version: "3.9" volumes: data: external: false config: external: false plugins: external: false kibana: external: false networks: demo: name: demo exte 阅读全文
posted @ 2022-03-20 22:28 ascertain 阅读(50) 评论(0) 推荐(0) 编辑
摘要: Single Node: cluster.name: vagrant-cluster node.name: vagrant #node.attr.rack: r1 #path.data: /path/to/data #path.logs: /path/to/logs #bootstrap.memor 阅读全文
posted @ 2022-03-20 22:24 ascertain 阅读(171) 评论(0) 推荐(0) 编辑
摘要: # 增量更新 POST wares/_update/1/ { "doc":{ "id":3 } } # 查看mapping get wares/_mapping 阅读全文
posted @ 2022-03-20 19:08 ascertain 阅读(144) 评论(0) 推荐(0) 编辑
上一页 1 ··· 14 15 16 17 18 19 20 21 22 ··· 55 下一页