Options
All
  • Public
  • Public/Protected
  • All
Menu

Usage

宇石前端工具库
npm i ys-tool

Index

Interfaces

Variables

Functions

Object literals

Variables

Let setCookies

setCookies: any = require('./setCookie')

Functions

arrayEqual

  • arrayEqual(arr1: [], arr2: []): boolean
  • desc

    判断两个数组是否相等

    Parameters

    • arr1: []
    • arr2: []

    Returns boolean

deepClone

  • deepClone<T>(val: T): T
  • desc

    深度克隆数组或者对象

    Type parameters

    • T

    Parameters

    • val: T

    Returns T

getBroweser

  • getBroweser(): string

getCookie

  • getCookie(name: string): string

getOS

  • getOS(): undefined | "ios" | "android" | "windowsPhone" | "MacOSX" | "windows" | "linux"
  • desc

    获取操作系统类型

    Returns undefined | "ios" | "android" | "windowsPhone" | "MacOSX" | "windows" | "linux"

removeCookie

  • removeCookie(name: string): void

setCookie

  • setCookie(name: string, value: string, days: number): void
  • desc

    设置Cookie

    Parameters

    • name: string
    • value: string
    • days: number

    Returns void

Object literals

Const Ystool

Ystool: object

arrayEqual

arrayEqual: arrayEqual = arrayEqual

deepClone

deepClone: deepClone = deepClone

getBroweser

getBroweser: getBroweser = getBroweser

getCookie

getCookie: getCookie = getCookie

getOS

getOS: getOS = getOS

removeCookie

removeCookie: removeCookie = removeCookie

setCookie

setCookie: setCookie = setCookie

Legend

  • Module
  • Object literal
  • Variable
  • Function
  • Function with type parameter
  • Index signature
  • Type alias
  • Enumeration
  • Enumeration member
  • Property
  • Method
  • Interface
  • Interface with type parameter
  • Constructor
  • Property
  • Method
  • Index signature
  • Class
  • Class with type parameter
  • Constructor
  • Property
  • Method
  • Accessor
  • Index signature
  • Inherited constructor
  • Inherited property
  • Inherited method
  • Inherited accessor
  • Protected property
  • Protected method
  • Protected accessor
  • Private property
  • Private method
  • Private accessor
  • Static property
  • Static method

Generated using TypeDoc