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

多次调用是不是有内存泄漏 #19

Open
jinghaonode opened this issue Jan 4, 2018 · 0 comments
Open

多次调用是不是有内存泄漏 #19

jinghaonode opened this issue Jan 4, 2018 · 0 comments

Comments

@jinghaonode
Copy link

jinghaonode commented Jan 4, 2018

如果需要频繁更新文本内容,在一些轮询场景中,会出现内存泄漏,以下为测试代码,在电脑上跑5分钟,内存直线上升

function html() {
var data = {
name: 'soda',
info: {
version: '2.0'
}
}
var text=soda("{{info.version}}", data);
}
var time=setInterval(function () {
html()
},100)

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