示例#1
0
func SetBody(content html.Node) {
	getBody().SetInnerHTML(content.String())
}
示例#2
0
//SetBody sets the content of the body, in the future this should be replaced by own dom wrapping
func (element Element) SetInnerHTML(content html.Node) {
	element.object.Set("innerHTML", content.String())
}
示例#3
0
func (element jQuerySelector) Before(content html.Node) {
	element.oneArgumentMethod("before", content.String())
}
示例#4
0
func (element jQuerySelector) Prepend(content html.Node) {
	element.oneArgumentMethod("prepend", content.String())
}
示例#5
0
func (element jQuerySelector) HTML(content html.Node) {
	element.oneArgumentMethod("html", content.String())
}