我想用ruby学习mac开发但是我不确定要去哪一个.RubyCocoa已经存在了很长时间,但我认为MacRuby将在长期内击败它.
有什么建议??
没有任何运气,我一直在寻找这个.如果你专注于搜索字段时在iphone上访问google.com,右边会出现一点'x',如果你触摸它,它会清除字段的当前值.谁知道怎么做到这一点?
谁能告诉我为什么这不起作用?
function changeBG(element_id){
document.getElementById(element_id).className= "arrowActive";
setTimeout("document.getElementById("+element_id+").className= 'arrow'", 300);
}
Run Code Online (Sandbox Code Playgroud)
在firebug中,我得到一个错误,说明传递给setTimeout()的element_id没有定义.