share.js
function getData(obj) {
        var data = {};
        each(supportParam, function(i, o) {
            var a = obj.getAttribute('data-' + o);
            if (a) data[o] = a;
        });
        return data;
    }
function getData(obj) {
        var data = {};
        each(supportParam, function(i, o) {
            var a = obj.getAttribute('data-' + o);
            if (a) data[o] = a;
        });
        return data;
    }
function getData ( obj ) { var data = { } ; each ( supportParam , function ( i , o ) { var a = obj . getAttribute ( 'data-' + o ) ; if ( a ) data [ o ] = a ; } ) ; return data ; }
Get DATA-API
Get DATA - API