customContextMenu: function(options) {
const option = {
enabled: true,
text: ‘取值’,
callback: function() {
console.log(‘取值’, this);
}.bind(this),
};
while (options.length !== 0) {
options.pop();
}
options.unshift(option);
},
Blockly自定义块的右键菜单
最新推荐文章于 2024-07-18 13:46:25 发布