鉴于以下数据结构:
var MyData = [
{"id": 1, "status": "live", dateCreated: "12:00:00 01/02/2016"},
{"id": 2, "status": "draft", dateCreated: "13:00:00 03/12/2015"},
{"id": 3, "status": "ready", dateCreated: "16:00:00 04/09/2016"},
{"id": 4, "status": "ready", dateCreated: "10:00:00 01/10/2016"},
{"id": 5, "status": "live", dateCreated: "09:00:00 05/07/2015"},
{"id": 6, "status": "draft", dateCreated: "08:00:00 11/03/2016"},
{"id": 7, "status": "ready", dateCreated: "20:00:00 12/02/2016"}
]
Run Code Online (Sandbox Code Playgroud)
我正在尝试对它进行排序并将其分组到以下条件中:
到目前为止我所拥有的:
// this object will help us define our custom order as it's not alphabetical
const itemOrder = {
'live': 1, …Run Code Online (Sandbox Code Playgroud) 我们如何在Quill.js中创建新主题?我们是否必须扩展现有的?
我只是想更新外观,而不是功能,因此从理论上讲,我可以为默认的Snow主题添加一堆替代项,但这并不理想。
那么-我们如何以及在何处创建和注册新的Quill.js主题?