2 回复
//app.js var THREE = require( "./utils/three-r106.js" ); var GLTFLoader = require( "./utils/GLTFLoader.js" ); var OrbitControls = require( "./utils/OrbitControls.js" ); wx.onMemoryWarning( function () { console.log( '....onMemoryWarningReceive' ) }) App({ THREE: THREE, SystemInfo: wx.getSystemInfoSync(), onLaunch: function () { console.log( 'launch...' ) wx.onMemoryWarning( function () { console.log( '..onMemoryWarningReceive..' ) }) }, |
是这样写吗?