Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
次のように、コントローラーの変数の結果を取得しようとします。
$('#ajax-test').click(function() { $.get('/ajax', function(data) { $('#ajax-test').html('$result').html(data); }); });
エラーしかないので、正しい方法は何ですか?