query-param.js 263 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('yoho-jquery'), opt = {}; $('.query-param').each(function() { var $this = $(this); opt[$this.data('attr')] = $this.val(); }); module.exports = opt;