問題
Rhino javascript debugger一直有一段敘述過不了
1
|
|
可是明明真實的瀏覽器跑起來都正常運作,用jsfiddle的jslint看也沒問題:
真相
用online jslint看, 突然想起來final好像是js保留字不能直接拿來當key, 實際上會因為瀏覽器有沒有處理而定。
JS保留字
- abstract else instanceof super
- boolean enum int switch
- break export interface synchronized
- byte extends let this
- case false long throw
- catch final native thishrows
- char finally new transient
- class float null true
- const for package try
- continue function private typeof
- debugger goto protected var
- default if public void
- debuggerlete implements return volatile
- do import short while
- double in static with