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