经典php项目开发 php项目开发实例( 二 )

  • 空格数错误,提示:Expected indentation of 7 spaces but found 8;
  • 文件名不要使用下划线,例如news_detail , 提示:Identifier ‘News_Detail’ is not in camel case;
  • 如果在index.js或者main.js导入axios, 会提示:’axios’ is defined but never used,我们直接在用到的页面导入就可以了,而不要在index 或者main.js导入;
  • components内.vue文件写法应该是并列的div,如果没有总得div包含会提示:Component template should contain exactly one root element;
  • 表达式两边要留出空格,例如:that.newslist = response.data.newslist,如果不留出来会提示:Infix operators must be spaced;
  • 【经典php项目开发 php项目开发实例】很多的时候都是出现了应该有空格,我们没有加上,按照提示加上空格就可以,越是按照要求写代码,我们的代码就会越规范 。

    推荐阅读