code: function getType (str) {
    var ret = null
    var match = /[0-9]+,[0-9]+,.*/.test(str)
    if (!match) {
      return null
    }
    var a = str.split(',')
    if (a && a[1]) {
      ret = parseInt(a[1])
    } else {
      return null
    }
    if (isNaN(ret)) {
      return null
    }
    return ret
  }
docs: Get type of uri
  @param  {string} str The uri
  @return {number}     The type or null