如何在这个延迟函数中使用 myValue 以便定义 myQuery?
$.getJSON('lorem.json', function (data) {
    var myKey = $("input").val(); 
    var myValue = data[myKey];
}).then(function () {
    var myQuery = "http://example.com?q=" + myValue ;
    $.getJSON(myQuery, function (info) {
        console.log(info);
...