1
下面返回該字符串的jQuery函數:這裏需要什麼需要在jQuery ajax post函數中按原樣執行ajax服務器響應?
'#prayer_date'.html("03/19/1968");
但是它沒有得到執行,因爲下面的功能上不data
變量行事。
你需要做什麼才能使結果在下面的函數中按原樣執行?
$('.showprayer').click(function(event)
{
$.post('/show_prayer', { 'name' : $(this).text() }, function(data)
{
// how to execute the `data` server response as-is?
});
});