JavaScriptCore本身仅实现ECMAScript规范,方便网页交互。不包含来自WebKit框架的XMLHTTPRequest,WebSocket,DOM等之类的东西。
主要类:
| 名称 | 说明 |
|---|---|
| JSContext | 脚本执行上下文 |
| JSValue | 对象转换 |
| JSManagedValue | 内存管理辅助对象 |
| JSVirtualMachine | 虚拟机,有独立的空间和垃圾回收机制 |
| JSExport | 导出协议 |
| Objective-C type | JavaScript type |
|---|---|
| nil | undefined |
| NSNull | null |
| NSString | string |
| NSNumber | number, boolean |
| NSDictionary | Object object |
| NSArray | Array object |
| NSDate | Date object |
| NSBlock | Function object |
| id | Wrapper object |
| Class | Constructor object |
Taoprone is available through CocoaPods. To install it, simply add the following line to your Podfile:
pod 'Taoprone'- 支持脚本热加载
- 支持圆角等二级属性设置
Taoprone is available under the MIT license. See the LICENSE file for more info.
