Skip to content
This repository has been archived by the owner on Oct 6, 2022. It is now read-only.

Latest commit

 

History

History
32 lines (26 loc) · 963 Bytes

result.append.md

File metadata and controls

32 lines (26 loc) · 963 Bytes

Result.append

The append function is established to create the append attribute to the last return value. It can be called as far as once to a runat. The second calling is invalidated without any exceptions.

Sample

	var result = new Result();
	result
	.runat("#table1")
	.remove("tr")
	.append("<tr><td>{data1}</td><td>{{data2}}<</td></tr>");

API

CallingReturning
Result . append ( mask )Result
ParametersTypeDescription
maskStringThe sub html with data masks which will be replaced to the removed tags.
"<tr>"<td>{data1}"</td>"<td>{{data2}}"</td>"</tr>"
The "{data1}" will be replaced and htmlEncoded with the data1 as a field in withdata. The "{{field}}" will be only replaced and be not htmlEncoded.