Is showResult a global function name in SSJS?
I used showResult as a function name in a script library and when it's called,开发者_开发百科 an error [TypeError] Error calling method showResult(string) on an object of type 'object[JavaScript Object]' occurred. If the function is defined in a xpage or renamed as showResult2, everything is OK.
No. The Reference tab in the Script Editor allows you to see all the global functions. If showResult is a function, it's defined elsewhere (e.g. in a script library).
精彩评论