tomcat的启动是通过Bootstrap类的main方法(tomcat6开始也可以直接通过Catlina的main启动) Bootstrap的启动 Bootstrap的main方法先new了一个自己的对象(Bootstrap),然后用该对象主要执行了四个方法: init(); setAwait(t ...
分类:
其他好文 时间:
2017-05-16 13:07:37
阅读次数:
246
extend 是构造一个组件的语法器. 你给它参数 他给你一个组件 然后这个组件 你可以作用到Vue.component 这个全局注册方法里, 也可以在任意vue模板里使用apple组件 var apple = Vue.extend({ …. }) Vue.component(‘apple’,app ...
分类:
其他好文 时间:
2017-05-16 12:59:44
阅读次数:
106
Dig是域信息搜索器的简称(Domain Information Groper),使用dig命令可以执行查询域名相关的任务。 ###1. 理解dig的输出结果 $ dig chenrongrong.info 1 ; <<>> DiG 9.9.5-3ubuntu0.1-Ubuntu <<>> chen ...
分类:
其他好文 时间:
2017-05-16 12:49:25
阅读次数:
183
Happy Number Write an algorithm to determine if a number is "happy". A happy number is a number defined by the following process: Starting with any po ...
分类:
移动开发 时间:
2017-05-14 10:50:45
阅读次数:
174
经典数位dp!而且这好像是数位dp的套路板子……不需要讨论原来我很头疼的一些边界。 改天用这个板子重做一下原来的一些数位dp题目。 http://blog.csdn.net/the_useless/article/details/53674906 题目大意: 给定a,b,k三个正整数,统计在[a,b ...
分类:
其他好文 时间:
2017-05-14 10:41:10
阅读次数:
199
#!/usr/bin/envpythonimportdns.resolverclassMydig:def__init__(self):self.data={}defget_dig_domain(self,domain_list):fordomainindomain_list:res=dns.resolver.query(domain,1)foriinres.response.answer:forjini.items:ifj.rdtype==5:find_res=j.to_text().find(‘***dns..
分类:
其他好文 时间:
2017-05-12 22:00:33
阅读次数:
110
#!/usr/bin/envpython#_*_coding:utf-8_*_fromgeventimportmonkeyimportgeventimporttimeimportdns.resolvermonkey.patch_socket()classMyGeven:def__init__(self):self.data={}defget_dig_domain(self,domain):res=dns.resolver.query(domain,1)foriinres.response.answer:for..
分类:
其他好文 时间:
2017-05-12 21:57:06
阅读次数:
180
官网示例:http://kindeditor.net/ke4/examples/dynamic-load.html 项目中发现一个问题,kindeditor官网是通过 初始化编辑器,但是现在有个需求,通过点击一个按钮使文本域初始化为富文本编辑器,尝试了以下方式 但是点击按钮,完全没有效果。 官网虽然 ...
分类:
其他好文 时间:
2017-05-12 20:11:55
阅读次数:
2365