/*!
@function JSEvaluateScript
@abstract Evaluates a string of JavaScript.
@param ctx The execution context to use.
@param script A JSString containing the script to evaluate.
@param thisObject The object to use as "this," or NULL to use the global object as "this."
@param sourceURL A JSString containing a URL for the script's source file. This is used by debuggers and when reporting exceptions. Pass NULL if you do not care to include source file information.
@param startingLineNumber An integer value specifying the script's starting line number in the file located at sourceURL. This is only used when reporting exceptions. The value is one-based, so the first line is line 1 and invalid values are clamped to 1.
@param exception A pointer to a JSValueRef in which to store an exception, if any. Pass NULL if you do not care to store an exception.
@result The JSValue that results from evaluating script, or NULL if an exception is thrown.
*/
JS_EXPORT JSValueRef JSEvaluateScript(JSContextRef ctx, JSStringRef script, JSObjectRef thisObject, JSStringRef sourceURL, int startingLineNumber, JSValueRef* exception);
通过这个方法执行js代码,能不能定位到context中正在执行的地方,或者说是正在执行的函数,没有没一种回调的方式?
@function JSEvaluateScript
@abstract Evaluates a string of JavaScript.
@param ctx The execution context to use.
@param script A JSString containing the script to evaluate.
@param thisObject The object to use as "this," or NULL to use the global object as "this."
@param sourceURL A JSString containing a URL for the script's source file. This is used by debuggers and when reporting exceptions. Pass NULL if you do not care to include source file information.
@param startingLineNumber An integer value specifying the script's starting line number in the file located at sourceURL. This is only used when reporting exceptions. The value is one-based, so the first line is line 1 and invalid values are clamped to 1.
@param exception A pointer to a JSValueRef in which to store an exception, if any. Pass NULL if you do not care to store an exception.
@result The JSValue that results from evaluating script, or NULL if an exception is thrown.
*/
JS_EXPORT JSValueRef JSEvaluateScript(JSContextRef ctx, JSStringRef script, JSObjectRef thisObject, JSStringRef sourceURL, int startingLineNumber, JSValueRef* exception);
通过这个方法执行js代码,能不能定位到context中正在执行的地方,或者说是正在执行的函数,没有没一种回调的方式?
解决方案 »
- dismissModalViewController 后会导致父视图的位置复原怎么办?
- IOS 如何以一个屏幕坐标为中心点旋转绘制汉字
- 做个登陆界面,怎么跳转到另外一个viewcontrollor?
- ios用json格式传数据post路径和URL应该如何写?
- ios开发可以获取到连接的wifi的信号强度么?
- 听音识曲
- 关于cocoa中,截图时CPU占用率过高的问题
- 关于IOS录音并且发送的问题
- Cordova BarcodeScannerc插件横屏
- 各位大侠,ios webview中使用h5定位时弹出 “http://xxx.xxx.xx”想使用您当前位置,如何才能去掉url地址呢?
- 讯飞语音听写
- iOS Markdown 处理和展示
我使用的是代理
可以回调,而且能定位到是哪个方法