jquery评分插件jquery.raty是一款功能强大的jquery评分插件,可灵活设置33个参数,可以显示数值和自定义字符串数组。 $.fn.raty.defaults.path = 'lib/img'; $('#function-demo').raty({ number: 3,//多少个星星设置 targetType: 'hint',//类型选择,number是数字值,hint,是设置的数组值 path : 'demo/img', hints : ['差','一般','好'], cancelOff : 'cancel-off-big.png', cancelOn : 'cancel-on-big.png', size : 24, starHalf : 'star-half-big.png', starOff : 'star-off-big.png', starOn : 'star-on-big.png', target : '#function-hint', cancel : false, targetKeep: true, targetText: '请选择评分', click: function(score, evt) { alert('ID: ' + $(this).attr('id') + "\nscore: " + score + "\nevent: " + evt.type); } }); $('#function-demo1').raty({ number: 10,//多少个星星设置 score: 2,//初始值是设置 targetType: 'number',//类型选择,number是数字值,hint,是设置的数组值 path : 'demo/img', cancelOff : 'cancel-off-big.png', cancelOn : 'cancel-on-big.png', size : 24, starHalf : 'star-half-big.png', starOff : 'star-off-big.png', starOn : 'star-on-big.png', target : '#function-hint1', cancel : false, targetKeep: true, precision : false,//是否包含小数 click: function(score, evt) { alert('ID: ' + $(this).attr('id') + "\nscore: " + score + "\nevent: " + evt.type); } });
文件目录······
暂无数据
猜你喜欢
更多»
项目推荐
更多»
PDF电子书
更多»
Java多线程编程核心技术
(2)
Linux命令详解词典.pdf
(5)
深入Python3中文版
(0)
百度SEO一本通.pdf
(0)
mysql必知必会.pdf
(2)
疯狂JAVA讲义 pdf电子书
(3)
C# 图解教程pdf电子书
(3)
研磨设计模式 pdf电子书
(0)