var Mock = require('mockjs') Mock.mock('/getNewsList', () => { return [1, 12, 3, 5, 4, 45, 'nihao']; })