2022-7-5日学习内容

1、1200PLC
西门子1200PLC视频:关于HMI部分,做了基于博途v16仿真的HMI测试
现场调试程序,结合1500PLC和博途仿真软件进行编程,进行阀门的接线
2.javascript

<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <title>扩展字符串的trim函数</title>
</head>
<body>
<script type="text/javascript">
    String.prototype.trim=function () {
        //alert("这是重写的方法")
     return  this.replace(/^\s+/,"").replace(/\s+$/,"")
    }
    window.onload=function () {
      document.getElementById("345").onclick=function () {
          let value1 = document.getElementById("123").value;
          let trim = value1.trim();
          alert("--->"+trim+"<---")
      }
    }
</script>
<input type="text" id="123">
<input type="button" id="345" value="将字符串的空白字符串的检验">
</body>
</html>
posted @ 2022-07-05 16:38  高处不胜韩  阅读(30)  评论(0)    收藏  举报