这是因为
this以前不是您要处理的内容,现在是
ajaxjQuery对象,请添加如下所示的
context选项
$.ajax():
$.ajax({ context: this, url: "ajax/save_text.php", ...this回调中的这种方式与
this调用时的方式相同
$.ajax()。或者,仅保留对
this单独变量中的引用。
另外,您需要调整
$(this).value,可能是
this.value或
$(this).val()。

这是因为
this以前不是您要处理的内容,现在是
ajaxjQuery对象,请添加如下所示的
context选项
$.ajax():
$.ajax({ context: this, url: "ajax/save_text.php", ...this回调中的这种方式与
this调用时的方式相同
$.ajax()。或者,仅保留对
this单独变量中的引用。
另外,您需要调整
$(this).value,可能是
this.value或
$(this).val()。