在組件里面可以但是在page不行const behavior = require('../behavior.js')Page({behavior[behavior]})
小程序behavior怎么在page里面使用?
UYOU
2018-07-22 14:34:47