mirror of
https://github.com/zhw2590582/ArtPlayer.git
synced 2026-10-26 00:31:20 -08:00
验证重名组件
This commit is contained in:
1 parent
73e58d356e
commit
899307696b
4 files changed
+19
-9
No files matched your search
@@ -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));
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user