Heim  >  Artikel  >  Backend-Entwicklung  >  KindEditor asjx加载内容

KindEditor asjx加载内容

WBOY
WBOYOriginal
2016-06-23 14:18:58853Durchsuche

HTML Ajax

<script> KindEditor.ready(function(K) {                window.editor = K.create('#body');        });	 function aa() {	 var temp="__URL__/rebody?id="+$("#er").val();	 $("#body").load(temp); }</script><select name="id" onchange="aa()" id="er"><option>asdf</option><option>sdddd</opton></select><textarea id="body" name="body"></textarea>编辑器是可以正常加载出来的,而且那个ajax的url也是对的,但是就是没有返回值,我是搞不明白。返回 object object求解释

回复讨论(解决方案)

返回的什么只有问你自己啊

是html字符串吗?  从你的描述看应该不是..so,检查下url指向的php返回了什么

我的Php是返回的一些html代码,但是用ajax来调用就是object了

Stellungnahme:
Der Inhalt dieses Artikels wird freiwillig von Internetnutzern beigesteuert und das Urheberrecht liegt beim ursprünglichen Autor. Diese Website übernimmt keine entsprechende rechtliche Verantwortung. Wenn Sie Inhalte finden, bei denen der Verdacht eines Plagiats oder einer Rechtsverletzung besteht, wenden Sie sich bitte an admin@php.cn