在线时间:8:00-16:00
迪恩网络APP
随时随地掌握行业动态
扫描二维码
关注迪恩网络微信公众号
开源软件名称:baidu/san开源软件地址:https://github.com/baidu/san开源编程语言:JavaScript 92.3%开源软件介绍:SAN
一个快速、轻量、灵活的 JavaScript 组件框架
安装(Install)NPM:
CDN: <script src="https://unpkg.com/san@latest"></script> 发布文件说明(Dist Files Information) 快速开始(Quick Start)<!DOCTYPE html>
<html>
<head>
<title>Quick Start</title>
<script src="https://unpkg.com/san@latest"></script>
</head>
<body>
<script>
const MyApp = san.defineComponent({
template: `
<div>
<input type="text" value="{=name=}">
<p>Hello {{name}}!</p>
</div>
`
});
let myApp = new MyApp({
data: {
name: 'San'
}
});
myApp.attach(document.body);
</script>
</body>
</html> 示例(Examples)文档(Document)周边(Companions)
变更历史(ChangeLog)Please visit document ChangeLog LicenseSan is MIT licensed. |
2023-10-27
2022-08-15
2022-08-17
2022-09-23
2022-08-13
请发表评论