js 变量判断?

https://img3.mukewang.com/5ca1b68f00014f5008000086.jpg

https://img2.mukewang.com/5ca1b6910001894901450272.jpg

https://img.mukewang.com/5ca1b6930001be9101150349.jpg

https://img3.mukewang.com/5ca1b6940001bd3108000613.jpg

拖动from marker 可以正常移动 ,但是拖动to 只能固定一个点位 

$("#range").on("change", function () {


     

            var $this = $(this),

            from = $this.data("from");

            to = $this.data("to");

           

                var fromData = fromToDis(json.data,to);

                computeOffsetCommon(fromData,1,"起点");

       

                var toData = fromToDis(json.data,from);

                computeOffsetCommon(toData,2,"末点");

      

    });


月关宝盒
浏览 386回答 1
1回答

米琪卡哇伊

建议把详细代码贴一下。。比如:computeOffsetCommon 的具体实现
打开App,查看更多内容
随时随地看视频慕课网APP

相关分类

JavaScript