1  jQuery(function ($) { // 屏蔽jPicker和bootstrap样式冲突
 2         $.fn.jPicker.defaults.images.clientPath = 'components/jpicker/images/'; //设置颜色选择器组件的图片的默认路径
 3         $('#color').jPicker({
 4             window: {
 5               expandable: true,
 6               position: {
 7                 x: 'screenCenter',
 8                 /* acceptable values "left", "center", "right", "screenCenter", or relative px value */
 9                 y: 'bottom'
10               },
11             }
12           },
13           function (color, context) {
14             var all = color.val('all');
15             // alert('Color chosen - hex: ' + (all && '#' + all.hex || 'none') + ' - alpha: ' + (all && all.a + '%' || 'none'));
16             // console.log($.jPicker.List[0].color.active.val('ahex'));
17             console.log($.jPicker.List[0].color.active.val('hex'));
18             console.log(all.hex);
19             console.log(aliveChart.chart.series);
20           })
21       })
22     .
23     .
24     .
25     .
26     others

 

相关文章:

  • 2021-06-02
  • 2022-12-23
  • 2022-01-20
  • 2021-11-29
  • 2022-12-23
  • 2022-12-23
猜你喜欢
  • 2021-12-30
  • 2021-08-20
  • 2022-12-23
  • 2021-09-20
  • 2021-06-24
相关资源
相似解决方案