JS面向对象编程 for Cookie
各位如果有更好的见解可讨论下! 代码如下: /* * Js Class Cookie * Author:Mr Co */ var Cookie = function(/*Cookie名称*/name){ this.$name = name; var allcookies = [removed]; if(allcookies == ”) return; var cookies = allcookies.split(‘;’); var cookie = null; for(var i = 0; i < cookies.length; i++){ if(cookies[i].subst