jenkins环境中的codemirror操作

举报
Amrf 发表于 2019/12/10 21:31:43 2019/12/10
【摘要】 同事希望用python selenium对网页中的jenkins配置进行一些修改,求助到我这边;用js给她了一个方案,结果傍晚反馈说修改保存的时候不生效;晚上又打了一些断点,发现就算直接修改textarea的值最终保存请求的时候值还是没有变化;看到其中一些codemirror的绑定逻辑...不长但是有点绕,改了改--->回家后直接看到一个答案;参考:https://blog.csdn.ne...

 同事希望用python selenium对网页中的jenkins配置进行一些修改,求助到我这边;用js给她了一个方案,结果傍晚反馈说修改保存的时候不生效;晚上又打了一些断点,发现就算直接修改textarea的值最终保存请求的时候值还是没有变化;看到其中一些codemirror的绑定逻辑...不长但是有点绕,改了改--->回家后直接看到一个答案;

[].slice.call(document.querySelectorAll('div.CodeMirror')).forEach(
    function(element){
        element.CodeMirror.setValue(element.CodeMirror.getValue().replace(/xxx/g,'yyy'));
    }
);

参考:

https://blog.csdn.net/heyingxin006/article/details/85703677

https://blog.csdn.net/wangmuming/article/details/22924815

https://blog.csdn.net/zbw18297786698/article/details/71055372

https://blog.csdn.net/ljl6158999/article/details/78214296

https://blog.csdn.net/aixiaoyang168/article/details/80636544

https://blog.csdn.net/miss1181248983/article/details/102536828

https://blog.csdn.net/Roger_CoderLife/article/details/100037104

https://blog.csdn.net/qq_33355821/article/details/103181926

https://github.com/jenkinsci/jenkins

/*------------------------------------------------ 分割线--------------------------------------------------------*/

lot.js查询记录

https://bbs.huaweicloud.com/blogs/137380

https://www.epubit.com/articleDetails?id=NC7E3EF94EA9000017EB41530A9A0ADB0

https://github.com/jerryscript-project/iotjs

https://github.com/jerryscript-project/iotjs/blob/master/docs/api/IoT.js-API-reference.md

https://www.infoq.cn/article/QzyM9la8MrIowe*Mrzkp

https://www.infoq.cn/article/2015/08/iotjs-jerryscript-samsung

https://blog.bitsrc.io/10-javascript-iot-libraries-to-use-in-your-next-projects-bef5f9136f83

https://www.hackerearth.com/blog/developers/javascript-in-iot/

https://www.postscapes.com/javascript-and-the-internet-of-things

https://news.samsung.com/global/samsung-electronics-opens-development-of-iot-js-an-iot-platform-that-expands-interoperability-to-lightweight-devices



【版权声明】本文为华为云社区用户转载文章,如果您发现本社区中有涉嫌抄袭的内容,欢迎发送邮件进行举报,并提供相关证据,一经查实,本社区将立刻删除涉嫌侵权内容,举报邮箱: cloudbbs@huaweicloud.com
  • 点赞
  • 收藏
  • 关注作者

评论(0

0/1000
抱歉,系统识别当前为高风险访问,暂不支持该操作

全部回复

上滑加载中

设置昵称

在此一键设置昵称,即可参与社区互动!

*长度不超过10个汉字或20个英文字符,设置后3个月内不可修改。

*长度不超过10个汉字或20个英文字符,设置后3个月内不可修改。