set-backurl.js 209 Bytes Raw Blame History Permalink 1 2 3 4 5 6 7 8 9 var $ = require('yoho-jquery'); $('.nav-back').on('click', function(e) { var channel = window.cookie('_Channel') || 'boys'; e.preventDefault(); location.href = '//m.yohobuy.com/' + channel; });