Options
All
  • Public
  • Public/Protected
  • All
Menu

Hierarchy

  • Observe

Index

Constructors

Properties

Methods

Constructors

constructor

  • new Observe(target: any, arr?: string | Array<string>, callback?: Function): Observe
  • Parameters

    • target: any
    • Optional arr: string | Array<string>
    • Optional callback: Function

    Returns Observe

Properties

$target

$target: any

Methods

mock

  • mock(target: any): void
  • 针对可以改变原数组的方法进行修改,并对原方法进行备份处理

    Parameters

    • target: any

    Returns void

onPropertyChanged

  • onPropertyChanged(prop: string, value: any, oldValue: any, target: any, path: string): void
  • Parameters

    • prop: string
    • value: any
    • oldValue: any
    • target: any
    • path: string

    Returns void

watch

  • watch(target: any, prop: string, path?: undefined | string): void
  • Parameters

    • target: any

      监听目标

    • prop: string

      监听目标的属性

    • Optional path: undefined | string

      属性路径

    Returns void

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