我已经玩过这个剧本,但还没有让它发挥作用。
我需要一个脚本来查看名为测试的工作表中F列的背景颜色。
如果F列中的单元格背景为黄色,则会将整行复制到名为新数据的新工作表。
请附上Google电子表格链接:https://docs.google.com/spreadsheets/d/19pMAmB94tOoV14MiSPyoPhty2dO5OudO4NupP8KhJA4/edit#gid=1703438513
非常感谢任何帮助!
$(document).ready(function(){
// The bootstrap 4 modal event is "shown.bs.modal", not just "shown"
$(document).on('shown.bs.modal', '#image_upload_panel', function() {
// I am using the jQuery method of creating the dropzone.
// Using #uploadWidget here would not work for me.
$("#image_upload_panel").dropzone({
url: '/kookoopapa'
});
});
// I'm automating the opening of the modal on page load,
// then selecting a file. A 404 page not found error verifies
// that the local config is being applied to the dropzone.
$('#image_upload_panel').modal();
});
答案 0 :(得分:1)
试试这个。它创建了一个行数组,其中F为黄色。它清除了“新数据”中的旧数据。并在新数组中复制:
NSDate *date1 = [NSDate date];
[AppDelegate verifyURL:@"http://bing.com" withCompletion:^(BOOL isOK) {
NSDate *date2 = [NSDate date];
if (isOK) {
NSLog(@"url is ok");
} else {
NSLog(@"url is currently not ok");
}
NSTimeInterval diff = [date2 timeIntervalSinceDate:date1];
NSLog(@"time to return: %.3f", diff);
}];