new个video,指定播放列表的第一个视频路径为src。监听end事件,回调里面把video的src改成列表的下一个,再play。示意代码:var vList = ['视频地址url1', 'url2', '...']; // 初始化播放列表var vLen = vList.length; // ...
分类:
Web程序 时间:
2015-02-08 11:31:21
阅读次数:
176
先引入别人的一个秒表计时类(counttime.class.php):1.先看第一个例子(大数中取少数): 1 5 */ 6 7 class Stopwatch { 8 private $start; 9 private $end;10 private $markup_start = array.....
分类:
编程语言 时间:
2015-02-08 10:16:37
阅读次数:
210
#import "ViewController.h"@interface ViewController ()@end@implementation ViewController- (void)viewDidLoad{ [super viewDidLoad]; // 数组的排序 //...
分类:
编程语言 时间:
2015-02-08 00:21:34
阅读次数:
468
之前写的那份是用邻接矩阵访问的,最近在复习数据结构,决定把邻接表的也写上来
邻接矩阵的看这里 : http://blog.csdn.net/hhooong/article/details/41761621
邻接表 :(写关键部分的算法)
void DFS (Graph &G, int v ,bool visit[]) {
cout << G.getValue(v) << end...
分类:
其他好文 时间:
2015-02-07 17:34:41
阅读次数:
149
题目描述:Remove Nth Node From End of ListGiven a linked list, remove thenthnode from the end of list and return its head.For example, Given linked list:.....
分类:
其他好文 时间:
2015-02-07 17:18:36
阅读次数:
128
mod_event_socketSkip to end of metadataCreated byJohn Boteler, last modified byNiek VlessertonNov 14, 2014Go to start of metadataAboutmod_event_socket...
分类:
其他好文 时间:
2015-02-07 17:10:30
阅读次数:
150
在网上看到了一个计算日期间隔的方法,咋一看很高深,仔细看更高神,很巧妙。
先直接代码吧
#include
#include
int day_diff(int year_start, int month_start, int day_start
, int year_end, int month_end, int day_end)
{
int y2, m2, d2;
int y1...
分类:
编程语言 时间:
2015-02-07 15:56:43
阅读次数:
268
Case具有两种格式。简单Case函数和Case搜索函数。--简单Case函数CASE sexWHEN '1' THEN '男'WHEN '2' THEN '女'ELSE '其他' END--Case搜索函数CASE WHEN sex = '1' THEN '男'WHEN sex = '2' THE...
分类:
数据库 时间:
2015-02-07 15:50:27
阅读次数:
149
Problem DescriptionGiven an integer N(0 ≤ N ≤ 10000), your task is to calculate N!InputOne N in one line, process to the end of file.OutputFor each N,...
分类:
其他好文 时间:
2015-02-07 11:43:17
阅读次数:
128
ARC&MRC都可使用的单例宏单例宏使用示例.h——>#import#import "singleDefine.h"@interface JYShared : NSObjectSHARED_INTERFACE(JYShared)@end.m—>#import "JYShared.h"#import@...
分类:
其他好文 时间:
2015-02-07 11:33:49
阅读次数:
138