03 2020 档案
摘要:【转载】Vue路由history模式踩坑记录:nginx配置解决404问题 问题背景: vue-router 默认是hash模式,使用url的hash来模拟一个完整的url,当url改变的时候,页面不会重新加载。但是如果我们不想hash这种以#号结尾的路径时候的话,我们可以使用路由的history的
阅读全文
摘要:RT,因为动态生成的input框,所以 $('input').attr('readOnly', true);无效。 使用 $('body').on('focus', 'input', function() { $(this).attr('readOnly', true) });
阅读全文

浙公网安备 33010602011771号