{ // 这个ᅼ块Ϟ兴ሳѠ՟ٙ两᮱讯ࢹ api.listen("photo-filter-submit"); api.listen("photo-filter-response"); this.api = api; }, // Ϥᅼ块ί页ࠦɪ ContentReady onload: function () { // ѓ诉 Core ˪ΐڌҁ毕dϊҪୋɓ张图˪༩径ɓৎԶ this.api.broadcast("photo-list-rendered", img.src); }, // Ϥᅼ块ϗՑ讯ࢹ onmessage: function (eventType, callerName, data) { switch (eventType) { case "photo-filter-response" : // ෬满ΐڌ break; case "photo-filter-submit" : // ٤ΐڌ break; } }, _updateUI: function (data) { // ѓ诉 Core ˪ΐڌҁ毕dϊҪୋɓ张图˪༩径ɓৎԶ this.api.broadcast("photo-list-rendered", img.src); } }); ც٤ΐڌ ც෬满ΐڌ ՟资ࣘ ͜户ʹڌ单 显ͪୋɓ张图˪ ΐڌҁ毕