[Object, Object]
打印出来为什么这样的下拉框怎么能显示值

解决方案 »

  1.   

    <picker bindchange="bindPickerChange" value="{{type}}" range="{{area}}" name="typeId">
      <view class="picker">
        <text class="picker-title" data-id="{{area[type]}}">业务分类</text>:{{area[type]}}
      </view>
    </picker>
    Page({
      data:{  
          area:[],
           type:0
      }, 
    onLoad:function(){
        // 页面初始化 options为页面跳转所带来的参数
        var that = this;
        var type = 
        wx.request({
          url: 'http://192.168.1.47/wxcx/app/index.php?mod=type&act=index&start=0&length=10',
          method : 'get',
          headers: {
          'Content-Type': 'application/json'
        },
        success: function(res) {
          console.log(res.data);
            that.setData({  
                area: res.data.area
            })
        },
      
          })
      },
      

  2.   

    http://192.168.1.47/wxcx/app/index.php?mod=type&act=index&start=0&length=10看看这个返回什么内容,应该是一个json的,你发出来看看。
    估计是res.data.xx.xxx