typeahead var name2id={};//创建这个name2id对象就是为了创建一个name与id的映射关系,以name为属性名,以id为属性值。 $("#create-accountName").typeahead({ source:function (query,process) { ...
分类:
其他好文 时间:
2020-03-30 21:41:29
阅读次数:
66
Class也是Object 在理解metaclass之前,我们需要先理解Python中的class。从某种程度上来说,Python中的class的定位比较特殊。 对于大部分面向对象语言来说,class是一段定义了如何产生object的代码块。在Python中这一定义也成立: >>> class ex ...
分类:
编程语言 时间:
2020-03-30 16:26:27
阅读次数:
73
OSS是使用通过URL尾部的参数指定图片的缩放大小 图片路径后面拼接如下路径: ?x-oss-process=image/[处理类型],x_100,y_50[宽高等参数] ?x-oss-process=image/resize,m_fill,h_高度,w_宽度,limit_0 //去除之前的参数,添 ...
分类:
微信 时间:
2020-03-30 16:09:16
阅读次数:
455
错误信息:Verify the connector's configuration, identify and stop any process that's listening on port xxxx, or configure this application to listen on ano... ...
分类:
其他好文 时间:
2020-03-30 14:35:32
阅读次数:
311
我的电脑上之前运行 Android Studio 很正常,今天突然无法启动 Android 模拟器。 报错信息为: Emulator: Process finished with exit code 1 Emulator: PANIC: Cannot find AVD system path. Pl ...
分类:
移动开发 时间:
2020-03-30 13:21:49
阅读次数:
251
import math import time s=10 t=time.process_time() for i in range(s+1): a,b='**'*i,'..'*(s-i) c=(i/s)*100 π=4*(4*math.atan(1/5)-math.atan(1/239)) prin ...
分类:
其他好文 时间:
2020-03-30 09:58:21
阅读次数:
70
 提高并发的话,使用多线程 python2 多进程有 多线程没有 python3 多进程有 多线程有 from concurrent.futures import ThreadPoolExecutor,Process ...
分类:
移动开发 时间:
2020-03-29 14:18:48
阅读次数:
111