Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

你好,mvvm如何作用于动态dom节点? #27

Open
leejie123 opened this issue Dec 10, 2018 · 0 comments
Open

你好,mvvm如何作用于动态dom节点? #27

leejie123 opened this issue Dec 10, 2018 · 0 comments

Comments

@leejie123
Copy link

leejie123 commented Dec 10, 2018

比如我在页面上

<script>

		new MVVM({
			el: '#todoist_app',
			data: {
				input_due_date: '00月00日'
			},
			methods: {
				
			}
		})
document.body.appendChild('<div>{{input_due_date}}</div>')

</script>

在这种情况下,没有渲染input_due_date

@leejie123 leejie123 changed the title 你好,如果元素是动态dom,mvvm就不能生效了 你好,mvvm如何作用于动态dom节点? Dec 10, 2018
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant