0
我想调用一个锤子上的功能,并且想传递一个自定义值/参数。将参数传递给除了事件以外的角锤功能
<div hm-panmove="startPan('customString')"></div>
我想我可以用这样的:
$scope.startPan = function (event, string) {
//... handler
}
但不幸的是,这并不工作。
链接到角锤: http://hammerjs.github.io/getting-started/
是否有可能做这样的事情?
任何提示赞赏。 谢谢
我没有测试这个,因为我不再在这个项目上工作。所以我不能说这是解决方案,但它似乎合法:) – Merc