• This project
    • Loading...
  • Sign in

张泽世 / yohobuywap-node · Files

Go to a project

GitLab

  • Go to dashboard
  • 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
  • sale 目录结构整理
    17955699
    by 王水玲
    2016-05-27 17:13:39 +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
 */

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

var opt = {};

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

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

module.exports = opt;