早上好。我正在使用JqGrid.js
文件,我注意到当我尝试对包含此格式(mm / dd / yyyy)的数据的列进行排序时,它不会花费一年时间帐户。 sortType总是" text"。任何帮助表示赞赏。
addLocalData = function() {
var st = ts.p.multiSort ? [] : "", sto=[], fndsort=false, cmtypes={}, grtypes=[], grindexes=[], srcformat, sorttype, newformat;
if(!$.isArray(ts.p.data)) {
return;
}
var grpview = ts.p.grouping ? ts.p.groupingView : false, lengrp, gin;
$.each(ts.p.colModel,function(){
sorttype = this.sorttype || "text";
if(sorttype === "date" || sorttype === "datetime") {
if(this.formatter && typeof this.formatter === 'string' && this.formatter === 'date') {
if(this.formatoptions && this.formatoptions.srcformat) {
srcformat = this.formatoptions.srcformat;
} else {
srcformat = $.jgrid.formatter.date.srcformat;
}
if(this.formatoptions && this.formatoptions.newformat) {
newformat = this.formatoptions.newformat;
} else {
newformat = $.jgrid.formatter.date.newformat;
}
} else {
srcformat = newformat = this.datefmt || "Y-m-d";
}
cmtypes[this.name] = {"stype": sorttype, "srcfmt": srcformat,"newfmt":newformat, "sfunc": this.sortfunc || null};
} else {
cmtypes[this.name] = {"stype": sorttype, "srcfmt":'',"newfmt":'', "sfunc": this.sortfunc || null};
}
答案 0 :(得分:0)
我对代码进行了以下修改。
import pygame
from moviepy.editor import VideoFileClip
pygame.init ()
clip = VideoFileClip('Intro.mpg')
clipresized = clip.resize (height=700)
clipresized.preview ()
game_loop()
pygame.quit ()
quit()