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;