MVC-即Model,View,Controller,三层架构模式。model作为领域模型,是维持应用状态,提供业务功能的领域模型;View-指UI层,用于和用户的交和页面的展示;而Controller则是定义具体了UI 逻辑功能。传统的MVC模式,并没有严格的定义,即Model层也可以直接返回给v ...
分类:
Web程序 时间:
2020-07-23 01:50:11
阅读次数:
92
(拓扑排序;AOE图) ##题目大意 给出一个工程各个活动的优先关系和所需时间,求完成这个工程所有活动的最短时间。如果无法完成,则输出Impossible。 题目链接 ##思路 拓扑排序。start为源点,ending为汇点。用一个变量num记录进入队列中的元素个数,如果不等于结点n,则表示不能完成 ...
分类:
其他好文 时间:
2020-07-22 13:52:22
阅读次数:
75
在c++中检查字符串是否包含另一串字符串,这个本来是我做过的一个算法题,不过最近刚好有个需求让我想到了这个题,就在此记录一下! 使用std::string::findfunction string str ("There are two needles in this haystack."); st ...
分类:
编程语言 时间:
2020-07-22 02:02:45
阅读次数:
79
var str = 'abcd来了efg'; var len = str.match(/[^ -~]/g) == null ? str.length : str.length + str.match(/[^ -~]/g).length ; 截取固定长度的中英文字符串 (汉字算2个) function ...
分类:
其他好文 时间:
2020-07-21 23:26:57
阅读次数:
111
自行安装 elementUI和pinyin-match 组件 <template> <el-select v-model="newValue" :filterable="filterable" :multiple="multiple" :filter-method="filterMethod" v- ...
分类:
其他好文 时间:
2020-07-21 21:27:48
阅读次数:
183
@Test public void testRegex() throws Exception { String str="das:! $%#*(*("; String regEx = "[`~!@#$%^&*()+=|{}':;'\\[\\].<>/?~!@#¥%……&*()——+|{}【】‘;:” ...
分类:
编程语言 时间:
2020-07-21 14:03:52
阅读次数:
76
When “ERROR CAN NOT MAP ERROR CODE : 21” is displayed [1] Phenomenon ? “ERROR CAN NOT MAP ERROR CODE : 21” is displayed and the equipment does not ope ...
分类:
其他好文 时间:
2020-07-21 13:47:51
阅读次数:
74
#取出字符串中汉字import reres = re.match(r'[\u4E00-\u9FA5\s]+', '我是 派森')print(res) 结果:<re.Match object; span=(0, 5), match='我是 派森'> print(res.group()) 结果:我是 派 ...
分类:
其他好文 时间:
2020-07-21 09:32:25
阅读次数:
115
首先 一看到名字 就去搜索了 Calc注入 想通过知识点 自己完成 而不是 跟着题解走 然后 看文章 表达式注入 同步测试: 找到api: http://node3.buuoj.cn:28564/calc.php GET 参数: num 测试 1*2 返回 2 然后发现毫无卵用 乖乖搜题解 Roar ...
分类:
其他好文 时间:
2020-07-20 15:41:56
阅读次数:
81
HTTPModule Event Execution Order? Does anyone know of a site or page, or know the order of execution for the events of the HTTPApplication class for H ...
分类:
Web程序 时间:
2020-07-18 00:56:58
阅读次数:
125