请解释一下,为什么this的行为与我自己有所不同? (function ($) {
$.fn.wtf = function() {
// See in console
// `this` returns what expected
console.log(this);
// `this.html()` returns only the fi
代码:点击提交按钮,一旦用户输入文本,应用程序就会击中其余的API,其数据格式为JSON。代码应该处理JSON数据并从jquery数据表中处理。 $(document).ready(function() {
$('#txt').click(function() {
var requestData = $('#txtid').val();
var