我在index.php页面上有一个搜索栏。但我想在coupons.php上显示结果。如何在AJAX中实现它。注意: #search_result是coupons.php文件的div,我想在其中显示结果。query=" + encodeURIComponent($("#list_search").val()), function (data) {
var res = JSON.pars
在gemfile中:一切都很好。但我的应用程序主要是一组json端点。因此,虽然能够检查html页面的性能是非常有用的,但我也希望能够看到返回json的控制器的性能。我的控制器示例: def json_method
# you don't see the mini profilerui for this cont