wendux / DSBridge-IOS

:earth_asia: A modern cross-platform JavaScript bridge, through which you can invoke each other's functions synchronously or asynchronously between JavaScript and native.

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

第二次调用不成功

Coder-Star opened this issue · comments

Webview缓存起来 第一次调用成功 但是第二次调用就不成功了

commented
  • ( void )testNoArgAsyn:(NSDictionary *) args :(JSCallback)completionHandler
    {
    completionHandler(@"testNoArgAsyn called [ asyn call]",NO);
    }

typedef void (^JSCallback)(NSString * _Nullable result,BOOL complete);
注意:complete设置为NO
if(complete){
del=[@"delete window." stringByAppendingString:cb];
}