jenkins环境中的codemirror操作
同事希望用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
- 点赞
- 收藏
- 关注作者
评论(0)