/*
先去官网下载最新的js http://sentsin.com/jquery/layer/
①引用jquery
②引用layer.min.js
*/
触发弹层的事件可自由绑定,如:
$('#id').on('click', function(){
layer.msg('test');
});
下面主要贴出上述例子的调用代码:
【信息框】:
layer.alert('白菜级别前端攻城...
分类:
Web程序 时间:
2014-09-17 12:07:42
阅读次数:
235
1 函数模板
template
T compare(const T & v1,const T &v2)
{
return ..
}
编译器承担了为每种类型编写函数的单调工作.
inline
template inline T min(const T&,const T&)
2 类模板
template
class Q{
T fun();
}...
分类:
编程语言 时间:
2014-09-16 23:46:41
阅读次数:
281
删除指定字段yourfield1为MatchedString所所有重复项
delete * from yourtablename where yourfield1='MatchedString' and handle not in (select distinct min(Handle) from chnl where yourfield1='MatchedString')
删除数据库中所有存在重复项的字段
delete * from yourtablename where handle not in...
分类:
数据库 时间:
2014-09-16 20:39:11
阅读次数:
265
割点是无向图中去掉后能把图割开的点。dfs时用dfn(u)记录u的访问时间,用low(u)数组记录u和u的子孙能追溯到的最早的节点(dfn值最小)。由于无向图的dfs只有回边和树边,且以第一次dfs时的方向作为边的方向,故有: low=min{ dfn(u), dfn(v),若(u,v)为回边(非....
分类:
其他好文 时间:
2014-09-16 20:31:50
阅读次数:
175
[root@jbossshell]#catgetopts.sh#!/bin/bash#date=2014-09-16#istopracticethegetoptswhilegetopts"a:bc"arg(:前面的变量是一定要跟参数的)do case$argin a) echo"a‘sarg:$OPTARG" ;; b) echo"b" ;; c) echo"c" ;; ?) echo"unkownargument" exit1 ;; esacdone[root@j..
分类:
其他好文 时间:
2014-09-16 19:09:31
阅读次数:
205
#include "stdio.h"#include "stdlib.h"#include "malloc.h"#include "string.h"#include "sys/timeb.h"#include "math.h"#include "inf.h"#define MIN(a,b) ((a...
分类:
其他好文 时间:
2014-09-16 18:46:40
阅读次数:
205
呵呵,这个可用动态规划,d(i,j)=min(d(i-1,j),d(i,j-1),d(i-1,j-1)+1/*ID: qq104801LANG: C++TASK: range*/#include #include #include #include #include #include #includ...
分类:
其他好文 时间:
2014-09-16 15:55:11
阅读次数:
302
【题意简述】:求由小正方体组成的大的长方体的表面积。
【分析】:注意边界。
// 268K 0Ms
#include
using namespace std;
int main()
{
int C;
int t;
int l,w;//底面的长和宽
int h;// 立方体的高
int s=0;//表面积
cin>>C;
int Min;
while(C--)
{
...
分类:
其他好文 时间:
2014-09-16 14:18:30
阅读次数:
265
补题系列之西安网络赛1011题目大意:给定一个椭球: 求它到原点的最短距离.思路:对于一个椭球的标准方程 x^2/a^2 + y^2/b^2 +z^2/c^2=1 来说,它到原点的最短距离即为min(a,b,c)所以我们需要把原方程化为标准型。这时候线代就排上用场了,注意到原方程是一个二次型。化为标...
分类:
其他好文 时间:
2014-09-16 14:06:40
阅读次数:
214