首先自定义一个专门处理异步的 hooks import {reactive, toRefs} from "vue"; const useAsyncFn = (fn)=>{ let data = reactive({value:undefined ,loading:false,err:undefine ...
分类:
Web程序 时间:
2021-04-24 11:55:00
阅读次数:
0
SELECT areaName FROM area ORDER BY CONVERT ( areaName USING gbk ) COLLATE gbk_chinese_ci ASC 说明: areaName为列名 area为表名 ...
分类:
数据库 时间:
2021-04-24 11:51:48
阅读次数:
0
1、安装依赖 npm install vue2-ace-editor 2、导入依赖,注册为子组件 import Editor from 'vue2-ace-editor' //在页面组件中通过components ,注册导入的组件 components:{ Editor } 3、组件使用 <edit ...
分类:
Web程序 时间:
2021-04-24 11:50:04
阅读次数:
0
github下载地址: https://github.com/uuidjs/uuid 1. Install npm install uuid 2. Create a UUID (ES6 module syntax) import { v4 as uuidv4 } from 'uuid'; uuidv ...
分类:
其他好文 时间:
2021-04-24 11:48:35
阅读次数:
0
1.selenium 基本操作 from selenium import webdriver from time import sleep #实例化一款浏览器对象 bro = webdriver.Chrome(executable_path='chromedriver.exe') #executab ...
分类:
其他好文 时间:
2021-04-23 12:20:22
阅读次数:
0
一、讲解 二、代码 import tensorflow as tf from tensorflow.python.keras import datasets, layers, optimizers, Sequential, metrics from tensorflow.python import ...
分类:
其他好文 时间:
2021-04-23 12:19:22
阅读次数:
0
## 198. House RobberYou are a professional robber planning to rob houses along a street. Each house has a certain amount of money stashed, the only co ...
分类:
其他好文 时间:
2021-04-23 12:11:50
阅读次数:
0
from wordcloud import WordCloud,ImageColorGeneratorimport jiebaimport numpy as npimport matplotlib.pyplot as pltfrom PIL import Image with open('西游记.t ...
分类:
其他好文 时间:
2021-04-23 12:11:32
阅读次数:
0
1 import yh 2 from selenium import webdriver 3 from PIL import Image 4 # from selenium.webdriver import ActionChains 5 # from selenium.webdriver impor ...
分类:
Web程序 时间:
2021-04-23 12:10:24
阅读次数:
0
做法:记录每个点i向左与它最近的不互质的数j,从j+1到i是可以分成1块的。 对于每次询问,从r开始一直贪心往前跳,每跳一步ans++;但这样一步一步跳会T,需要去倍增优化。 #include<bits/stdc++.h> using namespace std; #define ll long l ...
分类:
其他好文 时间:
2021-04-23 12:09:38
阅读次数:
0