Component({ properties: { date:{ type:String, observer:function(date){ var _date = date.replace(/0?(.+)-0?(.+)/,"$1月$2日"); this.setData({_date}); } }, course_identity:Number, activities:Array, course_id:Number }, attached:function(){ //console.log(this.data); }, data: { }, methods: { } })