看来jquery ui已加载,因为当我运行时
$(function(){
// did the UI load?
console.log($.ui.version);
});
Run Code Online (Sandbox Code Playgroud)
JS控制台返回1.10.3
我正在使用gem https://github.com/joliss/jquery-ui-rails(最新)和https://github.com/rails/jquery-rails版本2.1.4
我正在尝试为每个YouTube嵌入的iframe生成唯一的ID
$(".youtube_embed iframe").each.uniqueId();
Run Code Online (Sandbox Code Playgroud)
我做对了吗?我在JS控制台中收到此错误:
Uncaught TypeError: Object function ( callback, args ) {
return jQuery.each( this, callback, args );
} has no method 'uniqueId' 1:938
(anonymous function)
Run Code Online (Sandbox Code Playgroud) 我正在使用新的遗物标准来防止我的heroku应用程序空转.它似乎每分钟都会砰然一声.这会以任何显着的方式减慢我的应用程序.有没有办法让ping频率降低?寻找像heroku调度程序这样的替代方案是否明显更好?谢谢.