所以基本上我有一个脚本,当我点击“终止”或停止在Eclipse Zend Studio时不会退出所以我认为如果有一个事件一旦终止按下就会触发它可以解决这个问题。
一旦按下停止按钮,是否会执行事件或挂钩?有人知道吗?
我尝试了以下但不起作用。
struct consumptionResponse: Decodable {
let Entries: String?
let consumption: [consumptionEntrys]
let Success: String?
let Code: Int?
let message: String?
}
struct consumptionEntrys: Decodable {
// MARK: - Properties
var consumptionUtility: String?
var consumptionDateTime: String?
let consumptionReading: Double?
let consumptionAmount: Double?
}
所以任何帮助都请帮忙!