当前位置: 首页 > 文档资料 > Snap.svg 英文文档 >

Set.bind(…)

优质
小牛编辑
117浏览
2023-12-01

Specifies how to handle a specific attribute when applied to a set.

Parameters

  1. attrstringattribute name
  2. callbackfunctionfunction to run

or

Parameters

  1. attrstringattribute name
  2. elementElementspecific element in the set to applythe attribute to

or

Parameters

  1. attrstringattribute name
  2. elementElementspecific element in the set to applythe attribute to
  3. eattrstringattribute on the element to bind theattribute to

Returns: object Set object