var sceneReadyBehavior = require('../../behavior-scene/scene-ready'); var handleDecodedXML = require('../../behavior-scene/util').handleDecodedXML; var xmlCode = ``; Page({ behaviors: [sceneReadyBehavior], data: { xmlCode: '
' + handleDecodedXML(xmlCode) + '
', gesture: undefined, score: undefined }, handleInfo: function({detail}) { this.setData({gesture: detail.gesture, score: detail.score.toFixed(2)}); }, });