赞
踩
1、小程序的根目录下的project.config.json文件中必须存在下面的才会被插件检测为小程序项目
"compileType": "miniprogram"
2、高亮不成功的话,看看你是否 点我 把wxml和html连接起来,wxss和css连接起来,如果是的话,需要去除,去除方法看最下面的!!!
英文版:file -> settings -> plugins
搜索: wechat mini program support 然后 install / 安装 ,安装好了就是下面图的样子
wxml 、wxss 打开是空的
js打开默认
- Component({
- properties: {},
- data: {},
- methods: {
- }
- });
json打开默认
- {
- "component": true,
- "usingComponents": {
- }
- }
- <view>
- <view class="aaa" bind:tap="abc"></view>
- </view>
英文版:file -> settings -> editor -> file types
汉化版:文件 -> 设置 -> 编辑器 -> 文件类型
Copyright © 2003-2013 www.wpsshop.cn 版权所有,并保留所有权利。