我想扩展moment.js,覆盖它的toJSON函数。const moment = require('moment');
constructor(data) { date: m2(), // TypeError: Class constructor m2 cannot be invoked without
我正在将Chrome扩展移植到Firefox,并将Chartjs图表添加到页面中。它需要moment.js,并且在Chrome上工作得很好。但是,当我将其移植到Firefox时,图表不会加载,我会得到一个错误:我的manifest.json有按需要加载的顺序的内容脚本,但是Chartjs似乎无法在填充图表时“找到”即时js。site t