作者sunz5010 (FoFo)
看板Ajax
標題[請益] JQuery 使用load 輸出要加空白?
時間Fri Jul 1 01:02:09 2011
※ [本文轉錄自 PHP 看板 #1E3AiXIH ]
作者: sunz5010 (FoFo) 看板: PHP
標題: [請益] JQuery 使用load 輸出要加空白?
時間: Fri Jul 1 00:58:07 2011
我使用
$("#Test").load("test.php", function() {alert('123');});
不行
但是只要在alert後面多一個空白就可以
$("#Test").load("test.php", function() {alert('123 ');});
~~~
為什麼會這樣?
我用
$("#Test").load("test.php", function() {$("#Test2").html("hello ");});
~~~
這裡也一定要加空白才行@@
我用firefox ie 瀏覽器都試過了
好奇怪、誰可以幫我解答一下嘛@@
--
※ 發信站: 批踢踢實業坊(ptt.cc)
◆ From: 111.252.45.153
--
※ 發信站: 批踢踢實業坊(ptt.cc)
◆ From: 111.252.45.153
1F:→ sunz5010:補充:我JQuery的版本為 1.6.1 07/01 01:03