码迷,mamicode.com
首页 > 其他好文
【repost】Chrome 控制台console的用法
下面我们来看看console里面具体提供了哪些方法可以供我们平时调试时使用。 目前控制台方法和属性有: 下面我们来一一介绍一下各个方法主要的用途。 一般情况下我们用来输入信息的方法主要是用到如下四个: 1、console.log 用于输出普通信息 2、console.info 用于输出提示性信息 3 ...
分类:其他好文   时间:2017-01-08 09:59:45    阅读次数:206
判断在类中某个函数(也可以是变量或类型)是否存在
一,判断在类中某个函数(也可以是变量或类型)是否存在 template<typename T> struct xxxx_detector { template<typename P,void (P::*)(void)> struct detector{}; template<typename P> ...
分类:其他好文   时间:2017-01-08 09:58:22    阅读次数:178
yii2如何部署公共方法
我们假设全局性的公共类文件位于common/components/Helper.php,其内容如下: 1 2 3 4 5 6 7 8 9 <?php namespace common\components; class Helper { public function checkedMobile ( ...
分类:其他好文   时间:2017-01-08 09:59:13    阅读次数:223
CodeForces - 123E Maze
http://codeforces.com/problemset/problem/123/E 题目翻译:(翻译来自: http://www.cogs.pw/cogs/problem/problem.php?pid=1734) 一个迷宫是一棵树(即一张无向图,其中任意两点之间仅有一条路径)。迷宫的起点 ...
分类:其他好文   时间:2017-01-08 09:56:52    阅读次数:218
函数在被执行以前其中的全局变量报错
f1在未调用的情况下,即便age被声明成为全局变量,会报错为未定义,即变量未声明。 而若将age在函数外层定义后,结果如下: 此时变量是被定义,但未初始化,因此打印出的值为undefined。 而若函数运行后,结果如下: 值被读取出来了。 ...
分类:其他好文   时间:2017-01-08 09:56:18    阅读次数:130
LeetCode "459. Repeated Substring Pattern"
Brutal force works - and a smarter way is to utilize KMP. The most popular two solutions are essentially the same - one is obvious KMP, and another on ...
分类:其他好文   时间:2017-01-08 09:53:14    阅读次数:255
tuple解包给类的构造函数
首先我们的第一步当然是将tuple解包。tuple提供了一个get函数来获取第N个元素。例如: get<1>(make_tuple(...)); 要将一个tuple全部拆解,就可以使用通过多次调用这个函数来进行解析,例如: auto tup = make_tuple(..........); fun ...
分类:其他好文   时间:2017-01-08 09:55:10    阅读次数:163
简易二维码
演示:http://www.h5-share.com/articles/201701/createqr.html ...
分类:其他好文   时间:2017-01-08 09:53:38    阅读次数:248
mialx配置qq邮箱发送邮件
#send mail use mailx(v12.0.4)#edit configure file set smtp-use-starttlsset from=xxxxxxxxx@qq.comset smtp=smtp://smtp.qq.com:587set smtp-auth-user=xxxx ...
分类:其他好文   时间:2017-01-08 09:54:52    阅读次数:353
如果存在的话就调用
一,判断在类中某个函数(也可以是变量或类型)是否存在 template<typename T> struct xxxx_detector { template<typename P,void (P::*)(void)> struct detector{}; template<typename P> ...
分类:其他好文   时间:2017-01-08 09:53:05    阅读次数:153
接口开发注意传参问题
1 接口开发注意传参问题: 2 3 php中的curl()函数进行post请求的时候,传递数据的格式可以有以下几种方式: 4 5 (1):由参数拼接而成的key=>value键值对字符串。形如以下: name=xxx&age=23$sex=1 6 7 这种请求参数默认是按照application/x... ...
分类:其他好文   时间:2017-01-08 09:12:00    阅读次数:190
yii2表单提交不刷新的问题
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 public function actionContact() { $model = new ContactForm(); if ($model->load(Yii::$app->request->post()) && $ ...
分类:其他好文   时间:2017-01-08 09:10:34    阅读次数:358
ntdll.dll函数原型
/*NTDLL Base Functions*/NTSYSAPI NTSTATUS NTAPI NtAcceptConnectPort( OUT PHANDLE PortHandle, IN PVOID PortIdentifier, IN PPORT_MESSAGE Message, IN BOO... ...
分类:其他好文   时间:2017-01-08 09:09:50    阅读次数:163
正则表达式---总结(1)
语法: ...
分类:其他好文   时间:2017-01-08 09:10:45    阅读次数:274
LeetCode Longest Palindrome
原题链接在这里:https://leetcode.com/problems/longest-palindrome/ 题目: Given a string which consists of lowercase or uppercase letters, find the length of the ...
分类:其他好文   时间:2017-01-08 09:09:43    阅读次数:169
Yii2 Pjax的简单使用
有两个例子:刷新时间和数据显示排序 1、刷新时间 (1)控制器中的方法:Time 1 2 3 4 public function actionTime() { return $this->render('time',['time'=>date("h:i:s")]); } 1 2 3 4 public ...
分类:其他好文   时间:2017-01-08 09:09:08    阅读次数:171
BZOJ 1898: [Zjoi2005]Swamp 沼泽鳄鱼 [矩阵乘法]
1898: [Zjoi2005]Swamp 沼泽鳄鱼 Description 潘塔纳尔沼泽地号称世界上最大的一块湿地,它地位于巴西中部马托格罗索州的南部地区。每当雨季来临,这里碧波荡漾、生机盎然,引来不少游客。为了让游玩更有情趣,人们在池塘的中央建设了几座石墩和石桥,每座石桥连接着两座石墩,且每两座 ...
分类:其他好文   时间:2017-01-08 09:11:03    阅读次数:181
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!