Typoskript - konvertieren von string zu Zahl
totalbalancetemp = (Number(this.balance)) + (Number(this.pastAmount));
Meine totalbalancetemp
ist die Rückgabe undefiniert in der Erwägung, dass this.balance
ist gleich 34, und this.pastAmount
ist gleich 23.
Habe ich dies im controller und Anzeige totalbalancetemp
mit exp in html
wenn totalbalancetemp ist eine Eigenschaft der Komponente. dann sollten Sie nicht rufen Sie mit diesem.totalbalancetemp
Code-Formatierung, Rechtschreibung und Grammatik
Code-Formatierung, Rechtschreibung und Grammatik
InformationsquelleAutor john | 2017-03-08
Du musst angemeldet sein, um einen Kommentar abzugeben.
-->totalbalancetemp - Define-Variable (oder) jede Art
InformationsquelleAutor Senthil Kumar
totalbalancetemp sollte durch diese ersetzt.totalbalancetemp, wenn Sie Teil der eckige 2-Komponenten -
InformationsquelleAutor xird
Tun
+this.balance
im .ts-Datei oderthis.balance*1
oderthis.balance/1
auf in der template-Datei.InformationsquelleAutor gildniy