IIS7下面默认HTTPS绑定是无法指定主机头的,但我们可以通过手工修改IIS配置来实现主机头绑定。 打开C:\Windows\system32\inetsrv\config\applicationHost.config 定位到如下位置:<bindings><binding protocol="ht Read More
{ this.state.avatarSource null ? <Text>Select a Photo</Text> : <Image style={styles.avatar} source={this.state.avatarSource} /> } Read More
a valid provisioning profile for this executable was not found错误程序发布后,发现一个bug,需要在自己手机调试时,出现:a valid provisioning profile for this executable was not f Read More
升到iOS10之后,需要设置权限的有: 麦克风权限:Privacy - Microphone Usage Description 是否允许此App使用你的麦克风? 相机权限: Privacy - Camera Usage Description 是否允许此App使用你的相机? 相册权限: Priva Read More
代码片段理解: line 2: line 8 - 10: 是表达:state.counter[id] = state.counters[id] + 1 Read More
... 包含0个或n个属性, { ...state.counters [id]: state.counters[id] - 1 } 只改变其中的id相对应的属性,其他保持不变 Read More
mapStateToProps(state, ownProps) : stateProps reducer 去更新 store Read More
NSPredicate *resultPredicate = [NSPredicate predicateWithFormat:@"self contains[cd] %@", iconName]; if ([_maIcons filteredArrayUsingPredicate:resultPr Read More
java -jar selenium-server-standalone-2.41.0.jar -Dwebdriver.chrome.driver="C:\Program Files\Google\Chrome\Application\chromedriver.exe" Read More
UIScroView 3倍的contentSize,左右Scroll时,懒惰添加左右的View用途:分段加载数据定义枚举:typedefenum { ViewPositionLeft = 101, ViewPositionCenter, ViewPositionRight} ViewPosition;变量定义: NSInteger _currnetPage; CGRect _leftFrame; CGRect _centerFrame; CGRect _rightFrame; UIScrollView *_sv;初始化变量:-(void)crea... Read More