Vue
reactive# Vue Guide 数据属性 Data
组件的 data 选项是一个函数。Vue 在创建新组件实例的过程中调用此函数。它应该返回一个对象,然后 Vue 会通过响应性系统将其包裹起来,并以 $data 的形式存储在组件实例中。为方便起见,该对象的任何顶级…
AxiosRequest
Type.d.ts Copy
// type
import type {
AxiosRequestConfig,
InternalAxiosRequestConfig,
AxiosInterceptorOptions,
AxiosResponse,…
Javascript
JS 语法集合 实现 call 函数
Copy
Function.prototype.wxcall = function (thisArg, ...arg) {
var fn = this;
thisArg = thisArg ? Object(thisArg…
HTML&CSS
单行文本溢出 Copy
.overflow-example {
white-space: nowrap;
overflow: hidden;
text-overflow: ellipsis;
}
多行文本溢出
Copy
.multiline-overflow…
React
Redux redux 是一个状态管理库,用于对整个 App 组件的共享状态和数据进行集中式管理
store
Copy
import { createStore } form 'redux'
const init = {
value:'defaultValue'
}…