我有一个与线模绑定的模板,名为showDataModal,里面没有几个功能。我想从Adobe目标外部触发这些功能之一,以支持动态数据。可以从有线模式外部调用该函数吗?请说明如何从控制台触发功能?
模板:
<div id="mydata" class="my-data" wire-model="showDataModal" wire-mode="own" data-time="10000">
<div class="data-container">
<nav>
<a href="#hldata" data-bind="click: prev, visible: containdata" style="display: none;"><i class="icon-arrow-left-ln-2"></i></a>
<span class="pages" data-bind="source: navItems" data-template="data-template"></span>
<a href="#hldata" data-bind="click: next, visible: containdata" style="display: none;"><i class="icon-arrow-right-ln-2"></i></a>
</nav>
<div id="content" data-bind="style: {width: contentWidth, left: carrouselPosition}, visible: loaded" style="display: none;">
<aside class="item">
</aside>
<aside class="item">
</aside>
<aside class="item">
</aside>
</div>
</div>
</div>
Js:
var showDataModal = function () {
this.load = function () {
};
this.changedata = function () {
};
function noData() {
}
};