Skip to content

a == 1 && a == 2 && a == 3 输出true方法 #36

New issue

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

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

Already on GitHub? # to your account

Closed
H246802 opened this issue Nov 14, 2018 · 0 comments
Closed

a == 1 && a == 2 && a == 3 输出true方法 #36

H246802 opened this issue Nov 14, 2018 · 0 comments

Comments

@H246802
Copy link

H246802 commented Nov 14, 2018

var a = {};
var num = 0;
a.valueOf = function(){
	return ++num
};
a == '1' && a == '2' && a == '3'

建议查看JavaScript 标准参考教程 -阮一峰

Originally posted by @H246802 in #1 (comment)

@H246802 H246802 closed this as completed Nov 14, 2018
# for free to join this conversation on GitHub. Already have an account? # to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant