• This project
    • Loading...
  • Sign in

fe / yohobuywap-node · Files

Go to a project

GitLab

  • Go to group
  • Project
  • Activity
  • Files
  • Commits
  • Pipelines 0
  • Builds 0
  • Graphs
  • Milestones
  • Issues 0
  • Merge Requests 0
  • Members
  • Labels
  • Wiki
  • Forks
  • Network
  • Create a new issue
  • yohobuywap-node
  • public
  • js
  • common
  • query-param.js
  • var转let
    803915bb
    by lijing
    2017-03-29 12:55:22 +0800  
    Browse Files
query-param.js 264 Bytes
Raw Blame History Permalink
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17
/**
 * 提取查询参数
 * @author: xuqi<qi.xu@yoho.cn>
 * @date: 2015/11/19
 */

let $ = require('yoho-jquery');

let opt = {};

$('.query-param').each(function() {
    let $this = $(this);

    opt[$this.data('attr')] = $this.val();
});

module.exports = opt;