这个js是从github上找的版本,只能拖动时间轴的方式,后续看看能不能做成像播放器那样的 代码是回放一段很小的视频段的特定代码,如果有其他需求,还可以再此基础上修改。 Date.prototype.format = function (fmt) { var o = { "M+": this.get ...
分类:
其他好文 时间:
2020-04-21 09:44:46
阅读次数:
183
//时间撮格式化 function formattime(data) { // console.log(params) $.each(data, function (i, item) { if(item.transport){ var timenow = new Date(item.transpor ...
分类:
编程语言 时间:
2020-04-21 09:22:17
阅读次数:
93
C 获取枚举描述 首先创建如下枚举信息,并使用DescriptionAttribute类增加描述特性。 方法一:编写获取枚举描述方法 调用方式: 方法二:通过枚举扩展类 调用方式: ...
let arr1 = ['one', 'two', 'there'], arr2 = ['red', 'yellow', 'blue'], arr3 = ['brid', 'dog', 'pig'], arr4 = ['orange','apple','banner' ...
分类:
编程语言 时间:
2020-04-20 16:07:43
阅读次数:
82
A vertex cover of a graph is a set of vertices such that each edge of the graph is incident to at least one vertex of the set. Now given a graph with ...
分类:
其他好文 时间:
2020-04-20 01:33:53
阅读次数:
85
for循环--最普通的方法 arr.forEach(function(value, index, array){})--遍历数组 map()相似 arr.filter(function(value, index, array){ return value > 20;})--筛选数组--返回的是一个新 ...
分类:
编程语言 时间:
2020-04-20 01:05:23
阅读次数:
71
1、模型 创建博客文章模型,与User建立外键关联 # 文章模型 class Post(db.Model): __tablename__ = 'posts' id = db.Column(db.INTEGER, primary_key=True) body = db.Column(db.TEXT) ...
分类:
其他好文 时间:
2020-04-19 11:19:03
阅读次数:
59
XmlDocument doc = new XmlDocument(); //加载要读取的XML doc.Load(@"F:\Books.xml"); //获得根节点 XmlElement books = doc.DocumentElement; //获得子节点 返回节点的集合 XmlNodeLis ...
分类:
其他好文 时间:
2020-04-19 00:59:45
阅读次数:
66
columns: [ { field: "", title: "序号", template: "<span class='row-number'></span>", width:50 }] dataBound: function () { var rows = this.items(); $(row ...
分类:
其他好文 时间:
2020-04-17 12:44:24
阅读次数:
102
Problem : Given an integer array with even length, where different numbers in this array represent different kinds of candies. Each number means one c ...
分类:
其他好文 时间:
2020-04-17 00:23:13
阅读次数:
77