通过第三方 JavaScript 库,扩展微信小程序框架功能。 扩展微信小程序框架功能(1)——Promise ES6 对 Promise 有了原生的支持,但微信开发者工具更新版本(0.11.112200)后, 移除了开发者工具对 ES6 中Promise 特性原生的支持, 需要引入第三方的 Pro ...
分类:
微信 时间:
2018-11-25 16:31:54
阅读次数:
230
先上代码: output: 未完待续... ...
分类:
其他好文 时间:
2018-11-20 01:17:51
阅读次数:
138
[ capture_block ]( parameters ) mutable exception_specification attribute_specifier -> return_type { body }; 捕捉快(capture_block): 参数(parameters): 可选项: ...
分类:
其他好文 时间:
2018-11-19 17:21:39
阅读次数:
190
Mappper Reducer Runner ps:需要预先创建表 ...
分类:
其他好文 时间:
2018-11-18 22:36:09
阅读次数:
165
1 /** 2 * 获取高度 3 * 4 * @param font 目标字体 5 * @param width 约束宽度 6 * 7 * @return 目标高度 8 */ 9 - (CGFloat)ptv_heightWithFont:(UIFont *)font constrainedToWi... ...
分类:
移动开发 时间:
2018-11-15 18:33:14
阅读次数:
221
1 /** 2 * 获取高度 3 * 4 * @param font 目标字体 5 * @param width 约束宽度 6 * 7 * @return 目标高度 8 */ 9 - (CGFloat)ptv_heightWithFont:(UIFont *)font constrainedToWi... ...
分类:
移动开发 时间:
2018-11-15 18:28:06
阅读次数:
222
#create a tuple tuplex = "w", "j" ,"c", "e" print(tuplex) #tuples are immutable, so you can not remove elements #using merge of tuples with the + oper... ...
分类:
编程语言 时间:
2018-11-12 23:59:51
阅读次数:
910
1 class list(object): 2 """ 3 Built-in mutable sequence. 4 5 If no argument is given, the constructor creates a new empty list. 6 The argument must be ...
分类:
编程语言 时间:
2018-11-10 12:41:13
阅读次数:
204
//创建得分窗口字典 var dict= new mutable.HashMap[Double, Int]() for (i { val winno:Int = dict(ss11) winno }) map (k -> v) map类型传进来一个k,获取v 如果这个k本身的值,与一个表中的值相等,... ...
分类:
其他好文 时间:
2018-11-08 16:30:55
阅读次数:
234
如何给button增加下划线简单版 - (void)setUnderLineForButton:(UIButton *)btn withTitle:(NSString *)title { //利用富文本的方式增加button下划线 NSMutableAttributedString*str = [[ ...
分类:
其他好文 时间:
2018-11-01 16:11:42
阅读次数:
146