使用说明
直接引入 umd 模块,如下:
<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8">
<title>umd demo</title>
<meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1">
<meta name="renderer" content="webkit">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<script src="./dist/index.js"></script>
</head>
<body>
<div id="app"></div>
<script>
var rrr = new Rnpmns({ container: 'app' });
rrr.init();
</script>
</body>
</html>
采用 es 模块使用
import Rnpmns from '@rayb/npmns-ui';
const rrr = new Rnpmns({ container: 'app' });
rrr.init();