Interface IStorage

Interface IStorage

ชื่อพื้นที่: Aspose.Html.Dom การประกอบ: Aspose.HTML.dll (25.4.0)

อินเตอร์เฟซนี้ของ API Web Storage ให้การเข้าถึงการประชุมหรือการจัดเก็บในท้องถิ่นของโดเมนที่เฉพาะเจาะจงดูรายละเอียดการจัดเก็บเว็บ: https://html.spec.whatwg.org/multipage/webstorage.html#webstorage

[ComVisible(true)]
[DOMObject]
[DOMName("Storage")]
public interface IStorage

Properties

Length

กลับจํานวนคู่กุญแจ / ค่า

[DOMName("length")]
long Length { get; }

คุณสมบัติมูลค่า

long

Methods

Clear()

ลบ คีย์ / คู่ค่าทั้งหมดถ้ามี

[DOMName("clear")]
void Clear()

GetItem(รั้ว)

กลับค่าปัจจุบันที่เกี่ยวข้องกับกุญแจที่กําหนดหรือ null หากกุญแจที่กําหนดไม่ได้มี

[DOMName("getItem")]
string GetItem(string key)

Parameters

key string

วัตถุที่สําคัญ string

Returns

string

วัตถุค่า string

Key(ระยะยาว)

กลับชื่อของ nth คีย์หรือ null ถ้า n มากกว่าหรือเท่ากับจํานวนคีย์ / คู่ค่า

[DOMName("key")]
string Key(long n)

Parameters

n long

จํานวนรายการจัดเก็บ

Returns

string

คีย์ string

RemoveItem(รั้ว)

ลบคู่คีย์ / คีย์ที่มีคีย์ที่กําหนดหากมีคู่คีย์ / คีย์ที่มีคีย์ที่กําหนด

[DOMName("removeItem")]
void RemoveItem(string key)

Parameters

key string

วัตถุที่สําคัญ string

SetItem(รั้ว, รั้ว)

กําหนดค่าของคู่ที่ระบุโดยคีย์ไปยังค่าสร้างคู่คีย์ / ค่าใหม่หากไม่มีคีย์ก่อนหน้านี้

[DOMName("setItem")]
void SetItem(string key, string value)

Parameters

key string

วัตถุที่สําคัญ string

value string

วัตถุค่า string

 แบบไทย