0
  1. Phpコード

     <?php
       Class semester extends CI_Controller
       {
         public function index()
          {
            echo '{"success":true}';
          }
       }
     ?>
    
  2. ExtJS コード

    var form=this.up('form').getForm();
    form.url = 'http://localhost/anju/index.php/semester';
    form.method = 'POST'; 
    form.submit({
          success: function (form, action) {
             alert("Success: " );
         },
         failure: function (form, action) {
             alert("Failure: " );
         }
       });
    

これまでのところ、成功メッセージを作成できませんでした:(誰かが失敗した理由を教えてもらえますか?

4

0 に答える 0