我想在Angular 2中调用方法ontimeupdate事件。我已经完成了以下操作,但它没有被调用。
<video *ngIf="switch1" [src]="content.iframeUrl(0)" (onTimeUpdate)="internal(1)" id="frame" height="100%" width="100%" controls autoplay></video>
还有其他方法可以调用它吗?
答案 0 :(得分:2)
正确的语法应为
>>> spark.createDataFrame([ (x[0],x[1],str(x[2])) for x in data.collect()], ['id', 'date', 'values']).orderBy('id', 'date').show(20, False)
+---+----------+--------------------------------------------+
|id |date |values |
+---+----------+--------------------------------------------+
|1 |2016-01-05|[] |
|1 |2016-01-31|[(u'USD', 100), (u'GBP', 150)] |
|1 |2016-02-15|[(u'USD', 150), (u'GBP', 150), (u'JPN', 10)]|
|2 |2016-01-10|[] |
|2 |2016-02-01|[(u'EURO', 50), (u'GBP', 100)] |
+---+----------+--------------------------------------------+