Class: Persist

eg.Persist

new eg.Persist(key)

Get or store the current state of the web page using JSON.

웹 페이지의 현재 상태를 JSON 형식으로 저장하거나 읽는다.

  • key
    Type: String

    The key of the state information to be stored

    저장할 상태 정보의 키

Browser Support

Browser Version
Desktop - Internet Explorer 9+
Desktop - Chrome latest
Desktop - Firefox latest
Desktop - Safari latest
Desktop - Edge latest
iOS 7+
Andorid 2.3+ (except 3.x)

Methods

staticeg.Persist.clear()

staticeg.Persist.isNeeded(){Boolean}

Returns:
Type Description
Boolean

get(path){String|Number|Boolean|Object|Array}

Read value

  • path nullable
    Type: String

    target path

    target path

Returns:
Type Description
String | Number | Boolean | Object | Array

remove(path){Persist}

Remove value

  • path
    Type: String

    target path

    target path

Returns:
Type Description
Persist

set(path, value){Persist}

Save value

  • path
    Type: String

    target path

    target path

  • value
    Type: String | Number | Boolean | Object | Array

    value to save

    value to save

Returns:
Type Description
Persist
comments powered by Disqus