type
status
date
slug
summary
tags
category
icon
password
注册监听器函数。
📝 每次创建一个对象时,如果它是一个点(Point),就将其添加到列表中。
代码如下
function ggbOnInit() { ggbApplet.registerAddListener("listener"); }function listener(obj) { if (ggbApplet.getObjectType(obj) == "point") { ggbApplet.evalCommand("SetValue[list, Length[list] + 1, " + obj + "]"); } }
有关Notion安装或者使用上的问题,欢迎您在底部评论区留言,一起交流~
- Author:LittleMath
- URL:https://899979.xyz/article/2b54f28d-2116-805d-88dc-c4a2f1c34e2c
- Copyright:All articles in this blog, except for special statements, adopt BY-NC-SA agreement. Please indicate the source!

