• This project
    • Loading...
  • Sign in

fe / YOHOBUYWAP · 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
  • static
  • js
  • product
  • query-param.js
  • params for product list
    bd401d7e
    by xuqi
    2015-12-07 11:24:38 +0800  
    Browse Files
query-param.js 257 Bytes
Raw Blame History Permalink
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16
/**
 * 提取查询参数
 * @author: xuqi<qi.xu@yoho.cn>
 * @date: 2015/11/19
 */

var $ = require('jquery'),
    opt = {};

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

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

module.exports = opt;