prefix和unprefix

exports._esModule = true;
exports.default = {
       prefix: function prefix(prop){
             if (prop[0] === '-'){
                 var sep = prop.indexOf('-' ,1 );
                 return prop.substr(0,sep+1);
             } else {
                 return ' ';
             }
       },
       unprefixed: function unprefixed(prop){
             if (prop[0] === '-'){
                 var sep = prop.indexOf('-' ,1 );
                 return prop.substr(0,sep+1);
             } else {
                 return prop;
             }
       }
};

 

posted @ 2016-07-10 14:08  Van小时  阅读(180)  评论(0编辑  收藏  举报