dojo中源和目标的区别
Difference between source and target in dojo
源和目标都在可移动的class.So下,我理解它们都代表类似于"dragable"的东西,如javascript。(我的理解是crt吗?)
Target Essentially it is Source wrapped in with isSource set to false.
Instances of this class can be created from the HTML markup
automatically by dojo/parser using data-dojo-type="dojo/dnd/Target".
目标和源这两个到底有什么区别和用法?
在事件处理中,我们将目标表示为事件所在的节点 occurs.Does dojo 中的目标意味着相同吗?
是的,你是对的dojo/dnd
它用于拖放。
dojo/dnd provides the basic user interface concepts of “drag and drop”
where a user interface element it clicked, dragged and then dropped in
another location. dojo/dnd uses an “avatar” to represent objects that
are being dragged from one location to another
source
和target
区别不大
基本上是为了方便,因为 target
是一个布尔标志。如果为真,则此对象可用于启动 DnD 操作,否则它只能作为目标。默认为真。
希望对您有所帮助。
源和目标都在可移动的class.So下,我理解它们都代表类似于"dragable"的东西,如javascript。(我的理解是crt吗?)
Target Essentially it is Source wrapped in with isSource set to false. Instances of this class can be created from the HTML markup automatically by dojo/parser using data-dojo-type="dojo/dnd/Target".
目标和源这两个到底有什么区别和用法? 在事件处理中,我们将目标表示为事件所在的节点 occurs.Does dojo 中的目标意味着相同吗?
是的,你是对的dojo/dnd
它用于拖放。
dojo/dnd provides the basic user interface concepts of “drag and drop” where a user interface element it clicked, dragged and then dropped in another location. dojo/dnd uses an “avatar” to represent objects that are being dragged from one location to another
source
和target
基本上是为了方便,因为 target
是一个布尔标志。如果为真,则此对象可用于启动 DnD 操作,否则它只能作为目标。默认为真。
希望对您有所帮助。