Fanfou Wiki

我等采石之人,当心怀建造大教堂之愿景。

用户工具

站点工具


playground:playground

这是本文档旧的修订版!


PlayGround

zh:syntax

index.html
<html>
  <head>
  </head>
</html>

标题


  1. var de = function() {
  2. return (typeof(window.de) == 'object') ? window.de : {};
  3. }();

<html>

<head>
  <meta charset="UTF-8" />
  <meta name="viewport" content="width=device-width, initial-scale=1.0" />
  <title>Document</title>
  <link
    rel="stylesheet"
    href="https://cdnjs.cloudflare.com/ajax/libs/mdui/1.0.1/css/mdui.min.css"
  />
</head>
<body>
  <div class="mdui-textfield">
    <input
      class="mdui-textfield-input"
      type="text"
      id="input"
      onchange="getMd5Value(this.value)"
      placeholder="值"
    />
    <input
      class="mdui-textfield-input"
      type="text"
      id="result"
      disabled
      placeholder="结果"
    />
  </div>
  <script src="https://cdnjs.cloudflare.com/ajax/libs/mdui/1.0.1/js/mdui.min.js"></script>
  <script src="https://cdnjs.cloudflare.com/ajax/libs/crypto-js/4.0.0/crypto-js.min.js"></script>
  <script>
    function getMd5Value(value) {
      document.getElementById("result").value = CryptoJS.MD5(value);
    }
  </script>
</body>

</html>

playground/playground.1608629960.txt.gz · 最后更改: 2020/12/22 17:39 由 admin