码迷,mamicode.com
首页 >  
搜索关键字:le ge lt gt eq ne    ( 256714个结果
thinkphp写接口返回固定的形式方法
function jsons($code, $message = '', $data = array()) { if(!is_numeric($code)) { return ''; } $result = array( 'code' => $code, 'message' => urlencode ...
分类:Web程序   时间:2021-06-13 09:22:24    阅读次数:0
LINQ与Lambda
LINQ提供很多集合的扩展方法,配合Lambda能简化数据处理。 LINQ常用的扩展方法大部分都在System.Linq命名空间中,对IEnumerable<T>扩展,提供了大量类似Where扩展方法。 实现IEnumerable接口类:数组、List、Dictionary等 LINQ常用的扩展方法 ...
分类:其他好文   时间:2021-06-13 09:21:19    阅读次数:0
Flink 消费RabbitMQ 和 Kafka
在消息RabbitMQ时,我们关心的一个问题是手动ack还是自动ack,如果是自动ack就怕出现丢消息的情况 Flink以RabbitMQ作为Source,是怎么保证消息唯一性的呢,是怎么保证ack的. 首先引入依赖包 <dependency> <groupId>org.apache.flink</ ...
分类:其他好文   时间:2021-06-11 19:15:45    阅读次数:0
JAVA mybitis入门学习
mybatis使用小案例 添加mybatis依赖 <!--mabatis依赖--> <dependency> <groupId>org.mybatis</groupId> <artifactId>mybatis</artifactId> <version>3.5.1</version> </depe ...
分类:编程语言   时间:2021-06-11 19:08:20    阅读次数:0
leetcode-python-汉明距离
1)取异或,然后计算1的个数 class Solution: def hammingDistance(self, x: int, y: int) -> int: t = x^y count = 0 while t: count += 1 t = t& t-1 return count ...
分类:编程语言   时间:2021-06-11 19:07:12    阅读次数:0
mybatis获取map中的key和value
低版本mybatis <foreach collection="mapInfo.entrySet()" item="item" index="index" separator=","> ${item.key} = VALUES ( #{item.value} ) </foreach> 高版本 <fo ...
分类:其他好文   时间:2021-06-11 19:06:24    阅读次数:0
移动端使用rem适配手机端 (阿里js文件)
1.阿里js文件路径 <script src="http://g.tbcdn.cn/mtb/lib-flexible/0.3.4/??flexible_css.js,flexible.js"></script> 2.文件dom <!DOCTYPE html> <html lang="en"> <he ...
分类:移动开发   时间:2021-06-11 19:05:55    阅读次数:0
ant design react之input框去除空格
1.创建一个util.js文件 export default { getValueFromEvent:(e)=>{ return e.target.value.replace(/(^\s*)|(\s*$)/g, ''); } } 2.引入使用 getValueFromEvent={util.getV ...
分类:其他好文   时间:2021-06-11 18:53:28    阅读次数:0
v-model
v-model:双数据绑定 <template> <div id="app"> <input type="text" v-model="name"> <p>{{name}}</p> </div> </template> <script> export default { data() { retur ...
分类:其他好文   时间:2021-06-11 18:49:57    阅读次数:0
C语言程序设计【1032】
简述算法的概念及其特点,同时请画出求s=1+2+3+…+10之值的算法流程图。 1.#include "stdio.h" voidsort(int x[ ],int n) {int i,j,k,t; for(i=0;i {k=i; for(j=i+1;j if(x[k]>x[j])k=j; if(i ...
分类:编程语言   时间:2021-06-11 18:45:27    阅读次数:0
256714条   上一页 1 ... 67 68 69 70 71 ... 25672 下一页
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!