0
jqueryを$(document).ready(function(){})で動作させるコントローラに入れる方法はありますか?私はコントローラ関数でいくつかのjqueryを使うことができますが、誰かがそれをクリックした場合にのみ動作します。関数の設定ではなく、ユーザーを待っているjqueryをどこに置くべきですか?私はXMLに取り組んでいます。タイ人。jquery in sapui5 xml
f.e.コントローラ:
sap.ui.define([
"ecu/controller/BaseController",
"sap/ui/model/odata/ODataModel",
"sap/ui/core/Fragment"
], function (BaseController, Fragment) {
"use strict";
return BaseController.extend("ecu.controller.Floor", {
onInit: function() {
},
someFunction: function (oEvent) {
console.log("something");
},
});
});