xxxxxxxxxx
<html>
<head>
<meta charset="utf-8">
<title>Vue 测试实例 - 高手教程(study.p2hp.com)</title>
<script src="https://cdn.staticfile.net/vue/2.4.2/vue.min.js"></script>
</head>
<body>
<div id = "databinding"></div>
<script type = "text/javascript">
var mixin = {
created: function () {
document.write('混入调用' + '<br>')
}
}
new Vue({
mixins: [mixin],
created: function () {
document.write('组件调用' + '<br>')
}
});
</script>
</body>
</html>