简体   繁体   English

密谋按钮单击事件不起作用

[英]Plotly Button Click Event not working

I am alien to javascript so pardon me for any naive mistake you find (though that's what I am looking for). 我对javascript很陌生,所以请原谅我发现的任何天真错误(尽管这就是我要寻找的东西)。

I tried to replicate the code provided for testing the button click event for plotly, but it's not getting fired. 我试图复制为测试按钮单击事件而提供的代码,但没有被解雇。

Link from which code is imported: 从中导入代码的链接:

https://plot.ly/javascript/custom-buttons/#bind-button-events-to-plotlyjs-charts https://plot.ly/javascript/custom-buttons/#bind-button-events-to-plotlyjs-charts

The way I used it in my html file to test it is shown in the image attached. 附件中的图像显示了我在html文件中测试它的方式。 It works well in code snippet, but due to some mistake of mine in using the javascript in the same page, I am not able to get in work. 它在代码段中效果很好,但是由于我在同一页面中使用javascript时遇到了一些错误,所以我无法上班。

Assistance highly appreciated. 援助受到高度赞赏。 在此处输入图片说明

the cdn link to jquery wasn't working. CDN链接到jquery无效。

Never rely on the external, keep a local copy of all libraries and call them 永远不要依赖外部,保留所有库的本地副本并调用它们

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM