temp; temp = $("#Words").val(); //get the words from textbox $.getJSON});//do something with temp...but temp is undefined after the execution of else提前感谢!
但是为什么$.getJSON之后的代码在回调完成之前就被执行了呢?="radio" class="star" value="'+counter+'"/>'; }
}
$.getJSONconsole.log(ratingHTML+"WHY DOES THIS EXECUTE FIRST AND NOT AFTER THE CALLBACK SINCE
Magento使用KnockoutJS,我想用一个简单的函数扩展一个KnockoutJS组件,该函数根据AJAX调用的响应返回true或false: $.getJSON('/mycontroller/checkEnabled', function(response) {
// response"false", in this case "tr