我在構建一個Rails應用程序,該應用程序使用Pusher使用Web套接字將更新直接推送到客戶端。在javascript中: channel.bind('tweet-create', function(tweet){ //when a tweet is created, execute the following code:
$('#timeline').append("<div cla
我在我的新網站中使用JSON和MUSTACHE模板。但我不知道如何從json數據中獲取HTML。我在後端使用PHP,作爲API提供者。我對這個概念很陌生。艾維的幫助和建議是受歡迎的。 謝謝。 代碼我使用:: <script>
// this is for base
this.get(/\#\/(.*)/, function(){
var send_url = '<?php