基本的 Hello World Suitelet - 純文字響應

/**
*@NApiVersion 2.x
*@NScriptType Suitelet
*/

define([],function() { // NetSuite's AMD pattern
    function onRequest_entry(context) { // Suitelet entry function receives a context obj
        context.response.write('Hello World'); // Write a response using the context obj
    }
    return {
        onRequest: onRequest_entry // Function assigned to entry point
    };
});