我需要从我的HTML 页面(index.html - 而不是 edgeActions.js 页面)控制我的边缘符号之一
例如,我有一个图像符号:“sym1”,我想从主 html 页面中隐藏它。我试过:
sym.$("sym1").hide();
但它不起作用..
这是我可以使它工作的唯一方法(仅在 edgeActions 页面中):
Symbol.bindElementAction(compId, symbolName, "document", "compositionReady", function(sym, e) {
var ex1 = sym.$( "sym1" );
yepnope({
both: [
"libs/jquery-ui.min.js",
"libs/jquery-ui.css",
],
callback: function() {
( ex1 ).hide();
}
});
});
我需要了解如何使用 JQuery 从主 html 页面控制符号。