我尝试在我的应用程序中添加一个jquery插件,但没有工作: 所以在脑子里,我有:index.html上的jquery颜色选择
,并在某处身体:
$("./images/colorwheel.png").ColorPicker({
color: '#0000ff',
onShow: function (colpkr) {
$(colpkr).fadeIn(500);
return false;
},
onHide: function (colpkr) {
$(colpkr).fadeOut(500);
return false;
},
onChange: function (hsb, hex, rgb) {
$('#footer').css('backgroundColor', '#' + hex);
$('#header').css('backgroundColor', '#' + hex);
}
});
但这轮didnt出现在我的网页上:| IM在jQuery的新... :(
+1
您的选择器'$(“./ images/colorwheel.png”)'是错误的.... –
+0
我应该把什么? –