Options
All
  • Public
  • Public/Protected
  • All
Menu

Namespace JS

project

JSDK

license

MIT

website

https://github.com/fengboyue/jsdk

author

Frank.Feng

email

boyue.feng@foxmail.com

version

2.7.0

date

2020/9/12

update

Update "jscore" for micro kernel

update

Update "jsan" for new tween and frame animations

version

2.6.0

date

2020/9/5

update

New js2d module

version

2.5.0

date

2020/8/20

update

Milestone for new jsmath and jsugar

version

2.4.0

date

2020/7/27

update

Support drag and tap events for mobile browser

version

2.3.1

date

2020/7/25

version

2.3.0

date

2020/7/19

update

New media module for audio and video

version

2.2.0

date

2020/7/12

update

New input module for keyboard, mouse and touch events

version

2.1.1

date

2020/7/11

update

Bugfix for Number.foramt method on WeChat mobile browser

version

2.1.0

date

2020/7/1

update

New animation module

version

2.0.0

date

2018/1/8 - 2020/6/12

update

All-new Milestone Version in TS language

***** OLD VERSION *****

version

1.0.0

date

2012/12/19

update

New independent kernel and stronger loader for loading multiple-version libs in the meantime but not released finally

version

0.6.2

date

2012/5/2

update

Enhance and bugfix

version

0.6.1

date

2012/4/18

update

Enhance and bugfix

version

0.6.0

date

2011/2-2012/4/14

update

Milestone version for new game framework: JSGF

version

0.1

date

2007/8/30

update

Trial version for micro-kernel and utils ***** OLD VERSION *****

Index

Type aliases

JSDKConfig

JSDKConfig: { cachedImport?: boolean | string; closeImport?: boolean; jsdkRoot?: string; libRoot?: string; libs?: {}; minImport?: boolean }

Type declaration

  • Optional cachedImport?: boolean | string
  • Optional closeImport?: boolean
  • Optional jsdkRoot?: string
  • Optional libRoot?: string
  • Optional libs?: {}
    • [key: string]: string | Array<string>
  • Optional minImport?: boolean

Variables

Let P

P: Promises = Promises

Let _cfg

Let _ldd

_ldd: {}

Type declaration

Let version

version: string = "2.7.0"

Functions

Let _impFile

  • _impFile(s: string): () => Promise<any>

Let _impLib

  • _impLib(v: string): () => Promise<any>

Let _min

  • _min(u: string, t: "js" | "css"): string
  • Parameters

    • u: string
    • t: "js" | "css"

    Returns string

Let _ts

  • _ts(u: string): string
  • Parameters

    • u: string

    Returns string

config

  • Gets JSDK's global configuration.

    Returns JSDKConfig

  • Sets JSDK's global configuration.

    Parameters

    Returns void

  • Gets the value of a key in global configuration.

    Type parameters

    • T

    Parameters

    Returns T

  • Sets the value of a key in global configuration.

    Parameters

    Returns void

imports

  • imports(url: string | string[]): Promise<any>
  • Import JLU(JSDK Library Uri).

    JLU Format 1:
    http(s)://domain/path/xxx.[js|css|html](#async)
    JLU Format 2:
    $moduleName
    JLU Format 3:
    ~/libName/x.y.z/xxx.[js|css|html](#async)
    

    Sample JLUs:

    $jsvp
    ~/coolbutton/1.0.0/cool-button.css
    ~/coolbutton/1.0.0/cool-button.js
    http://mycom.net/myapp/1.0.0/home.js
    http://mycom.net/myapp/1.0.0/home.css
    http://mycom.net/myapp/1.0.0/model.js#async
    http://mycom.net/myapp/1.0.0/template.html
    

    Parameters

    • url: string | string[]

    Returns Promise<any>