vue 中使用 watch 出现了如下的报错 报错: Method "watch" has type "object" in the component definition. Did you reference the function Method "watch" has type "object" in the component definition. Did you reference the function co…
使用 Less 下载依赖:npm install less less-loader 在mian.js 中添加: import less from "less"; Vue.use(less); 使用: <style lang="less"></style> 使用 Less 时运行报错 this.getOptions is not a function 原因:less-loader安装的的版本过高 解决:重新安装较低版本 npm uninstal…
javascript的倒计时功能中newData().getTime()在iOS下会报错问题解决 在做移动端时间转化为时间戳时,遇到了一个问题,安卓手机上访问时,能拿到时间戳,从而正确转换时间,而在iOS上缺不能正常显示,显示的时间为:NaN-NaN1-NaN Invalid Date new Date('2016-07-18 14:58:32').getTime(); //在ios上死活拿不到时间戳显示NaN 在网上找问题出现原因,看到以下内容: 在IOS5以上版本(不包含IOS5…
[Vue warn]: You are using the runtime-only build of Vue where the template compiler is not available. Either pre-compile the templates into render functions, or use the compiler-included build. add resolve: { /**解决报错 [Vue warn]: You are using the run…
IDEA中写MyBatis的xml配置文件编译报错的坑 说明:用IDEA编译工具在项目中使用Mybatis框架,编写mybatis-config.xml和Mapper.xml配置文件时,编译项目出现错误,错误提示为: xml中1字节的UTF-8序列的字节1无效 The cause of this is a file that is not UTF-8 is being parsed as UTF-8. It is likely that the parser is encountering a…