我已经使用插件来创建百分比加载器循环。 以下是初始化该插件之后使用的JS:如何从输入中获取值并将其传递给jquery中使用的插件对象
$("#test-circle").circliful({
animation: 1,
animationStep: 5,
foregroundBorderWidth: 15,
backgroundBorderWidth: 15,
percent: 35,
textSize: 28,
textStyle: 'font-size: 12px;',
textColor: '#666',
multiPercentage: 1,
percentages: [10, 20, 30]
});
我希望用户百分比变化的值。对于这个我已经使用:
$("#submit").click(function(){
var deg = ("#input").val();
var degree = deg;
});
现在我有来自用户的价值,但我不知道如何将它传递给插件。 我很新的jQuery的,而在这样做有一些麻烦,
尝试将整个'circliful'功能,把它放到你的点击事件,然后换'百分比:程度,' –