ERROR: While executing gem ... (Errno::EPERM)
Operation not permitted - /usr/bin/jekyll
Run Code Online (Sandbox Code Playgroud)
我在尝试安装Jekyll时收到权限错误.我目前正在运行OSX 10.11(El Capitan).我也有Xcode 7并安装了开发人员工具.有解决方法还是这是一个特定于操作系统的问题?
function slideshow(){
var timer = 0;
if(++index > 6) index = 1;
$(".banner").attr("src", images[index-1]);
$(".textfield").text(captions[index-1]);
$(".num").text(index);
timer = setTimeout(slideshow,3000);
}
function stopShow(){
clearTimeout(timer);
}
$("#show").click(function(){
slideshow();
});
$("#stopshow").click(function(){
stopShow();
});
Run Code Online (Sandbox Code Playgroud)
我有两个按钮分别启动和停止幻灯片放映.在上面的代码部分中,当我单击停止幻灯片按钮时,它会对stopShow()函数进行分类,但是setTimeout循环不会在后台停止