This repository has been archived on 2023-08-29. You can view files and clone it, but cannot push or open issues/pull-requests.
yutent
/
anot.js
Archived
1
0
Fork 0

优化search方法

master 2.2.4
宇天 2021-01-08 10:09:42 +08:00
parent d1f3cd7a10
commit 1786724598
2 changed files with 7 additions and 3 deletions

View File

@ -1,6 +1,6 @@
{
"name": "anot",
"version": "2.2.3",
"version": "2.2.4",
"description": "Anot - 迷你mvvm框架",
"main": "dist/anot.js",
"files": ["dist"],

View File

@ -469,7 +469,7 @@ Anot.mix({
key += ''
let uri = location.search
if (!key || !uri) {
if (!uri) {
return null
}
uri = decode(uri)
@ -493,7 +493,11 @@ Anot.mix({
obj[tmp[0]] = tmp[1]
}
}
if (key) {
return obj.hasOwnProperty(key) ? obj[key] : null
} else {
return obj
}
},
//复制文本到粘贴板
copy: function(txt) {