我的.html.erb中的动态Javascript
我在第一个rails应用程序中遇到了一些Javascript。
部分:_care_point.html.erb
$(function() { $( ".draggable" ).draggable({grid: [50, 20]}); $( ".node_input").each (function() { $(this).hide(); }); $("#").live('dblclick', function(){ console.log('moo'); jQuery(this).hide(); jQuery('.node_input', jQuery(this).parent()).show(); }); }); <div id= class='draggable node_chin'> <div id= class='node'>