我的html代码
var url='ws://localhost:8000/abc';
socket=new WebSocket(url);
socket.onopen=function(){
log('Success');
}
Run Code Online (Sandbox Code Playgroud)
在 php 或 node.js 中如何获取 url 路径abc?
在Xcode 4.1中没有问题,但升级到Xcode 4.2我得到以下警告:
Property 'title' 'copy' attribute does not match the property inherited from 'MKAnnotation'
Property 'subtitle' 'copy' attribute does not match the property inherited from 'MKAnnotation'
Run Code Online (Sandbox Code Playgroud)
我的代码:
@interface MyAnnotation : NSObject <MKAnnotation> {
CLLocationCoordinate2D coordinate;
NSString *subtitle;
NSString *title;
}
@property (nonatomic, readonly) CLLocationCoordinate2D coordinate;
@property (nonatomic, retain) NSString *subtitle;
@property (nonatomic, retain) NSString *title;
-(id)initWithCoordinate:(CLLocationCoordinate2D) coordinate;
@end
Run Code Online (Sandbox Code Playgroud)