示例工程 27-dom-web-types
27-dom-web-types/03-dataset-forms/index.html
点击「运行示例」后,左侧显示源码、右侧显示运行结果;console 输出会实时回传。
<!doctype html>
<html lang="zh-CN">
<head>
<meta charset="utf-8">
<meta name="viewport" content="width=device-width, initial-scale=1">
<title>27 · dataset-forms</title>
</head>
<body>
<p>请打开开发者工具 Console 查看输出。</p>
<div data-index="3">row</div>
<form>
<label>Name <input name="name" value="Ada"></label>
</form>
<script type="module">
import { run } from './dist/main.js';
run();
</script>
</body>
</html>