ファイルの 1 つで、次のように呼び出します。
var jobsString = getDropdownJobs();
この関数を呼び出します:
function getDropdownJobs() {
    var jobsString = amplify.store("JobsList");
    if (typeof jobsString === 'undefined') {
        // Amplify sends a request for getJobs, if it exists in cache, it will return that value.
        // If it does not exist in cache, it will make the AJAX request.
        amplify.request("getJobs", function (data) {
            // Leave a blank option for the default of no selection.
            var jobsString = '<option value=""></option>';
            // Append each of the options to the jobsString.
            $.each(data.jobs, function () {
                jobsString += "<option " + "value=" + this.JobNo_ + ">" + this.JobNo_ + " : " + this.Description + this.Description2 + "</option>";
            });
            // Store the jobsString to be used later.
            amplify.store("JobsList", jobsString);
        });
    }
    return jobsString;
}
の増幅定義"GetJobs"は次のとおりです。
amplify.request.define("getJobs", "ajax", {
    url: "../api/Job/Jobs",
    dataType: "json",
    type: "GET",
    cache: "persist"
});
それが戻るときはいつでも、それは未定義です。AJAX 定義に "async: false" を入れましたが、何も変わりませんでした。
戻る前に値がそこにあることを確認するにはどうすればよいですか?