我有一个shell脚本,
sample.sh
data-ad-slot
我正在从另一个脚本文件执行脚本。
build.sh
data-ad-slot
现在我正在执行<script async src="//pagead2.googlesyndication.com/pagead/js/adsbygoogle.js"></script>
<!-- RightSidebar -->
<ins class="adsbygoogle"
style="display:block"
data-ad-client="ca-pub-123"
data-ad-slot="12345"
data-ad-format="auto"></ins>
<script>
(adsbygoogle = window.adsbygoogle || []).push({});
</script>
。问题是有时目录不存在。 (例如:/ home / user / anotherloc)因此它不再执行进一步显示&#34; NSMutableArray *indexPaths = [NSMutableArray array];
NSInteger currentCount = self.datasource.count;
for (int i = 0; i < dataToAdd.count; i++) {
[indexPaths addObject:[NSIndexPath indexPathForRow:currentCount+i inSection:0]];
}
// do the insertion
[self.dataSource addObjects:dataToAdd];
// tell the table view to update (at all of the inserted index paths)
[self.tableView beginUpdates];
[self.tableView insertRowsAtIndexPaths:indexPaths withRowAnimation:UITableViewRowAnimationLeft];
[self.tableView endUpdates];
&#34;
我尝试jQuery(".confirm_click").click(function(){
var check = confirm("Are you sure you want to delete this record?");
if(check == true){
// Action - Record deleted
var url= jQuery(this).attr("url");
jQuery(location).attr('href',url);
}else{
// Action - none
}
});
跳过错误并继续执行。但它不起作用。反正有没有跳过这些错误?
(我不想更改第一个脚本)
答案 0 :(得分:-2)
source /home/user/scripts/sample.sh> / dev / null 2&gt;&amp; 1