1、前端调修改了属性 iOS端updateAttributes没有响应
- (void)updateAttributes:(NSDictionary *)attributes
原因:
比如前端修改了nam属性 但是 updateAttributes中没有回调
是因为下面初始化方法中没有传 name
- (instancetype)initWithRef:(NSString *)ref type:(NSString *)type styles:(NSDictionary *)styles attributes:(NSDictionary *)attributes events:(NSArray *)events weexInstance:(WXSDKInstance *)weexInstance
需要在上面初始化方法给name传空
网友评论