[問題] ajax or jquery?

看板Ajax作者 (一窩鳥蛋)時間14年前 (2010/01/24 09:20), 編輯推噓0(001)
留言1則, 1人參與, 最新討論串1/1
小弟初學AJAX 面臨抉擇 我該選 XAJAX 還是JQUERY? 原本是想選 XAJAX 但是卻看到一篇文章 害我想吐血 剛研究沒幾篇文章就說不更新了.....讓我怕怕的 http://xajax.dayanmei.com/ 還有人說XAJAX不可信任 http://blog.hinablue.me/743 (無立場 隨手GOOGLE一下就跑出來了 ) 偏偏我又買了一本 PHP+XAJAX 另外假設選定了 我想問 應該要怎麼學? 有類似好上手的文章嗎? 好想要有像JAVA一樣的API 可以方便看RETURN值 剛剛試了一次xajax 就出問題了 <?php //header('Content-Type: text/html; charset=utf-8'); require_once('/xajax_core/xajax.inc.php'); $xajax = new xajax(); $obj = $xajax->registerFunction('add'); $obj->useSingleQuote(); $obj->addParameter(XAJAX_INPUT_VALUE,'T1'); $obj->addParameter(XAJAX_INPUT_VALUE,'T2'); $xajax->processRequest(); function add($num1,$num2){ $objResponse = new xajaxResponse(); $objResponse->assign('answer','innerHtml',$num1+$num2); return $objResponse; } ?> <html> <head> <meta content="text/html; charset=UTF-8" http-equiv="content-type"> <title>加法器</title> </head> <body> <br /> 第一個數字 <input type="text" id="T1"> + 第二個數字 <input type="text" id="T2"> <button onClick="<?php $obj ->printscript(); ?>">=</button> 結果:<span id = "answer">?</span> 錯誤訊息 Deprecated: Assigning the return value of new by reference is deprecated in F:\wamp\www\xajax_core\xajax.inc.php on line 360 Deprecated: Assigning the return value of new by reference is deprecated in F:\wamp\www\xajax_core\xajax.inc.php on line 1305 ※ 編輯: adsl99801 來自: 118.165.157.110 (01/24 09:55)

01/24 13:39, , 1F
你看到的只是warning ,不是錯誤.
01/24 13:39, 1F
文章代碼(AID): #1BMw1lJs (Ajax)