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

如果是动态节点,需要有个更新的方法,可以实现下么? #4

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

Comments

@leejie123
Copy link

No description provided.

@canfoo
Copy link
Owner

canfoo commented Dec 11, 2018

你指的是vue.set这个方法吗 @leejie123

@leejie123
Copy link
Author

leejie123 commented Dec 11, 2018

<script>

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

</script>

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

最好有个方法可以vm.recompile()

@peanut-cream
Copy link

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

3 participants