收藏
回答

开发工具ctrl+s无效,写的css样式也没有效果,每次都需要重启才行?这是什么鬼?

如果,更新了最新版本也是不行啊。

回答关注问题邀请回答
收藏

5 个回答

  • 城主
    城主
    2020-04-29

    看起来还没解决啊

    2020-04-29
    有用
    回复
  • kinoko_sasafune
    kinoko_sasafune
    2019-10-31

    没错, 我也发现了这个问题。

    要在修改一下 重新保存后才会重新编译。

    2019-10-31
    有用
    回复 1
    • L波
      L波
      2019-10-31
      也是醉了,专业写bug
      2019-10-31
      回复
  • 。。。。。。
    。。。。。。
    2019-10-31

    看看是不是设置的快捷键给覆盖了

    2019-10-31
    有用
    回复 1
    • L波
      L波
      2019-10-31
      应该是没有的,因为我ctrl+s保存后重启样式可以执行,说明已经保存进去了
      2019-10-31
      回复
  • 灵芝
    灵芝
    2019-10-31

    是最新的稳定版(v1.02.1910120)么?清除缓存后编辑正常么?

    该问题已知的,后续修复,感谢反馈

    2019-10-31
    有用
    回复 3
    • L波
      L波
      2019-10-31
      是的,我重新下载的,还是不行。
      2019-10-31
      回复
    • L波
      L波
      2019-10-31
      需要重启或者自己手动编译
      2019-10-31
      回复
    • 灵芝
      灵芝
      2019-10-31回复L波
      嗯,该问题已知了,后续修复哈
      2019-10-31
      回复
  • 小满
    小满
    2019-10-31

    不会编译吗还是什么,css没有效果?

    2019-10-31
    有用
    回复 4
    • L波
      L波
      2019-10-31
      是的啊,不编译了
      2019-10-31
      回复
    • 小满
      小满
      2019-10-31回复L波
      机型,版本号,代码片段什么的方便可以发一下。不过发了我估计也复现不了,社区还没见过这种问题呢。
      2019-10-31
      回复
    • L波
      L波
      2019-10-31
      win旗舰版系统,最新版的开发工具。
      //index.js
      //获取应用实例
      const app = getApp()

      Page({
        data: {
          //motto: 'Hello World',
          userInfo: {},
          hasUserInfo: false,
          canIUse: wx.canIUse('button.open-type.getUserInfo')
        },
        //事件处理函数
        bindViewTap: function() {
          // wx.navigateTo({
          // url: '../logs/logs'
          // })
        },
        onLoad: function () {
          if (app.globalData.userInfo) {
            this.setData({
              userInfo: app.globalData.userInfo,
              hasUserInfo: true
            })
          } else if (this.data.canIUse){
            // 由于 getUserInfo 是网络请求,可能会在 Page.onLoad 之后才返回
            // 所以此处加入 callback 以防止这种情况
            app.userInfoReadyCallback = res => {
              this.setData({
                userInfo: res.userInfo,
                hasUserInfo: true
              })
            }
          } else {
            // 在没有 open-type=getUserInfo 版本的兼容处理
            wx.getUserInfo({
              success: res => {
                app.globalData.userInfo = res.userInfo
                this.setData({
                  userInfo: res.userInfo,
                  hasUserInfo: true
                })
              }
            })
          }
          let useI = wx.getStorageSync("userInfo");
          //console.log(useI.nickName)
          if (useI.nickName != undefined){
            this.request();
          }
        },
        request(){
          //获取数据
       
        },
        getUserInfo: function(e) {
          //console.log(e)
          app.globalData.userInfo = e.detail.userInfo
          this.setData({
            userInfo: e.detail.userInfo,
            hasUserInfo: true
          })
          wx.setStorageSync("userInfo", e.detail.userInfo);
          //
          var name = e.detail.userInfo.nickName;
          wx.login({
            success: function (res) {
              //console.log(res)
              wx.request({
                url: 'http://xy.cdfjxh.com:777/ashx/business.ashx?action=getOpenID&id=' + res.code,
                method: 'GET',
                success: function (res) {
                 // console.log(res, res.code)
                  if (res.data.openid) {
                    //console.log(name)
                    wx.request({
                      url: `http://xy.cdfjxh.com:777/ashx/business.ashx?action=insertWxInfo&wxname=${name}&openid=${res.data.openid}`,
                      method: 'GET',
                      success: function (res) {
                        console.log(res)
                        this.request();
                      }
                    })
                  }
                }
              })
            }
          })
        }
      })


      /**index.wxss**/
      page{
        background-color: #f8f8f8;
      }
      .userinfo {
        display: flex;
        flex-direction: column;
        align-items: center;
      }

      .userinfo-avatar {
        width: 128rpx;
        height: 128rpx;
        margin: 20rpx;
        border-radius: 50%;
      }

      .userinfo-nickname {
        color: #aaa;
      }

      .usermotto {
        margin-top: 200px;
      }

      .content{
        width: 100vw;
        height: 40vh;
        background-color: #62ac4c;
        color: white;
        font-weight: 500;
      }
      .name{
        text-align: center;
        font-size: 44rpx;
      }
      .content_List{
        padding: 10px 40rpx;
      }
      .List_row{
        display: flex;
        margin: 15px 0;
        font-size: 30px;
      }
      .row_li{
        flex: 1;
      }

      .content2{
        background-color: #fff;
        margin-top: 30rpx;
      }
      .content2_List{
        padding: 40rpx;
        border-bottom: 1px solid #eee;
      }
      .content2_List:last-child{
        border: none;
      }

      .shouquan{
        position: absolute;
        bottom: 10px;
      }
      .SQBtn{
        height: 30px;
        padding: 0;
        color: #62ac4c;
        display: inline-block;
        font-size: 16px;
        top: 4px;
      }
      .SQBtn::after{
        border: none;
        background-color: none;
      }
      .bold{
        font-weight: bold;
      }
      2019-10-31
      回复
    • L波
      L波
      2019-10-31回复小满
      样式是有效果的,但是每次修改后必须重启编辑器才行,蛋疼
      2019-10-31
      回复
登录 后发表内容
问题标签