验证重名组件

This commit is contained in:
zhw2590582 committed 2019-05-17 21:52:52 +08:00
1 parent 73e58d356e
commit 899307696b
4 files changed
+19 -9

No files matched your search

+4
View File
@@ -7,6 +7,10 @@ export function errorHandle(condition, msg) {
return condition;
}
export function hasOwnProperty(obj, name) {
return Object.prototype.hasOwnProperty.call(obj, name);
}
export function clamp(num, a, b) {
return Math.max(Math.min(num, Math.max(a, b)), Math.min(a, b));
}