如:
Proto.IPS = Class.create({
build: function() {
this.container.insert(
this.wrapper = new Element('div', {className: 'ips_wrapper'})
.insert(this.element = new Element('div', {
className: 'ips_text'
}))
.insert(this.trigger = new Element('div', {
className: 'ips_trigger'
}).update('<span>▼</span>'))
.insert(this.input = new Element('input', {
type: 'text',
className: 'ips_input hidden'
}))
)
})请问一下怎么调用中间的那个build方法
问题我解决了,
另外问一下css的
- 这是项目符号列表中的第一个项目。
- 这是项目符号列表中的第二个项目。
这么中间的空格没有了