init commit

This commit is contained in:
zhouyuejun
2018-10-26 11:33:25 +08:00
commit bec3bb9137
106 changed files with 29628 additions and 0 deletions
+14
View File
@@ -0,0 +1,14 @@
//获取cookie
export default function (name) {
name = name + "="
var start = document.cookie.indexOf(name),
value = null;
if (start > -1) {
var end = document.cookie.indexOf(";", start);
if (end == -1) {
end = document.cookie.length;
}
value = document.cookie.substring(start + name.length, end);
}
return value;
}