摘要:
####问题 项目中直接使用 this.$refs.searchInput.focus() 会报以下错误 Property 'focus' does not exist on type 'Vue | Element | (Vue | Element)[]' ####原因 ts中类型不明确引起的 ## 阅读全文
摘要:
Workaround to fix heap out of memory when running node binaries. It's a common issue when using TypeScript 2.1+ and webpack. This tool will append --m 阅读全文
摘要:
//识别并转换文本里的超链接 transSlink(value){ let reg = /(http:\/\/|https:\/\/|www)((\w|=|\?|\.|\/|&|~|-|[\u200B-\u200D\uFEFF])+)/g; let text = value.replace(reg, 阅读全文