小编Lau*_*ond的帖子

如何从 php 或 node.js 获取 websocket url 路径

我的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

javascript php node.js

3
推荐指数
2
解决办法
6076
查看次数

升级到Xcode 4.2之后为什么MKAnnotation会显示警告

在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)

xcode objective-c mapkit ios

2
推荐指数
1
解决办法
3385
查看次数

标签 统计

ios ×1

javascript ×1

mapkit ×1

node.js ×1

objective-c ×1

php ×1

xcode ×1