Skip to content
Sections
>> Trisquel >> 套件 >> etiona >> web >> libjs-jquery-metadata
etiona  ] [  nabia  ] [  aramo  ]
[ 原始碼: jquery-goodies  ]

套件: libjs-jquery-metadata (12-1)

jQuery plugin for parsing metadata from elements

Sets the type of metadata to use. Metadata is encoded in JSON, and each property in the JSON will become a property of the element itself.

There are three supported types of metadata storage:

  attr:  Inside an attribute. The name parameter indicates *which* attribute.

  class: Inside the class attribute, wrapped in curly braces: { }

  elem:  Inside a child element (e.g. a script tag). The name parameter
         indicates *which* element.

The metadata for an element is loaded the first time the element is accessed via jQuery.

As a result, you can define the metadata type, use $(expr) to load the metadata into the elements matched by expr, then redefine the metadata type and run another $(expr) for other elements.

其他與 libjs-jquery-metadata 有關的套件

  • 依賴
  • 推薦
  • 建議
  • dep: libjs-jquery
    JavaScript library for dynamic web applications

下載 libjs-jquery-metadata

下載可用於所有硬體架構的
硬體架構 套件大小 安裝後大小 檔案
all 6.8 kB23 kB [文件列表]