oceancloud
02/21/2020, 11:19 PMbattk
02/21/2020, 11:24 PMbattk
02/21/2020, 11:25 PMoceancloud
02/22/2020, 12:16 AMoceancloud
02/22/2020, 12:17 AM/**
* counter.js
* @NApiVersion 2.x
*/
define(function(){
var counter = 0;
function incrementValue() {
counter++;
}
function getValue() {
return counter;
}
return {
increment: incrementValue,
value: getValue
}
});
battk
02/22/2020, 12:20 AMbattk
02/22/2020, 12:21 AMoceancloud
02/22/2020, 12:26 AMoceancloud
02/22/2020, 12:27 AMoceancloud
02/22/2020, 12:52 AMbattk
02/22/2020, 12:52 AM