jQuery¼¼Êõ

PHPºǫ́´¦ÀíjQuery Ajax¿çÓòÇëÇóÎÊÌâ ¡ª xx was not called½â¾ö°ì·¨

×ÖºÅ+ ×÷ÕߣºH5Ö®¼Ò À´Ô´£ºH5Ö®¼Ò 2017-11-28 16:26 ÎÒÒªÆÀÂÛ( )

PHPºǫ́´¦ÀíjQuery Ajax¿çÓòÇëÇóÎÊÌâ ¡ª xx was not called½â¾ö°ì·¨

// ǰ̨´úÂë$.ajax({ url: 'http://www.ushark.net/home/save_trial_apply', dataType: 'jsonp', processData: false, data: $('.layui-layer-content #trialFormInfo').serialize(),}).done(function(data) { layer.msg('ÉêÇë³É¹¦');}).fail(function(jqXHR, textStatus, errorThrown) { layer.msg('ÉêÇëʧ°Ü£¬ÇëÖØÊÔ£¡');}).always(function(jqXHR, textStatus, errorThrown) { layer.msg('ÉêÇë³É¹¦');});// ºǫ́´úÂ루CI¿ò¼Ü£©public function save_trial_apply(){ $callback = $this->input->get('callback', true); echo $callback, '(', json_encode($_GET), ')'; // ¹Ø¼ü´úÂë}

// ºǫ́ÕýÈ·µÄ·µ»Ø½á¹ûÈçÏ£º

¡¡

1.±¾Õ¾×ñÑ­ÐÐÒµ¹æ·¶£¬ÈκÎתÔصĸå¼þ¶¼»áÃ÷È·±ê×¢×÷ÕߺÍÀ´Ô´£»2.±¾Õ¾µÄÔ­´´ÎÄÕ£¬ÇëתÔØʱÎñ±Ø×¢Ã÷ÎÄÕÂ×÷ÕߺÍÀ´Ô´£¬²»×ðÖØÔ­´´µÄÐÐΪÎÒÃǽ«×·¾¿ÔðÈΣ»3.×÷ÕßͶ¸å¿ÉÄܻᾭÎÒÃDZ༭Ð޸Ļò²¹³ä¡£

Ïà¹ØÎÄÕÂ
  • jqueryÊÖ·çÇÙ½¹µã¶¯»­

    jqueryÊÖ·çÇÙ½¹µã¶¯»­

    2017-11-28 12:04

  • springmvc½ÓÊÕjqueryÌá½»µÄÊý×éÊý¾Ý

    springmvc½ÓÊÕjqueryÌá½»µÄÊý×éÊý¾Ý

    2017-11-27 12:11

  • jqueryÿÈÕһѧ·ÖÀàÎÄÕÂÁбí

    jqueryÿÈÕһѧ·ÖÀàÎÄÕÂÁбí

    2017-11-26 15:09

  • jQueryÅжÏcheckboxÊÇ·ñÑ¡ÖеÄ3ÖÖ·½·¨

    jQueryÅжÏcheckboxÊÇ·ñÑ¡ÖеÄ3ÖÖ·½·¨

    2017-11-26 10:21

ÍøÓѵãÆÀ
²