forked from x/volcanos
opt some
This commit is contained in:
parent
9bc665bb89
commit
d16da3deff
6
frame.js
6
frame.js
@ -357,8 +357,10 @@ Volcanos("onappend", {help: "渲染引擎", list: [], _init: function(can, meta,
|
|||||||
|
|
||||||
return sort && can.page.RangeTable(can, table, sort), table
|
return sort && can.page.RangeTable(can, table, sort), table
|
||||||
},
|
},
|
||||||
board: function(can, text, target) { text = can.page.Color(text||"")
|
board: function(can, text, target) {
|
||||||
var code = text && can.page.Append(can, target||can._output, [{view: ["code", "div", text]}]).code
|
// text = text.replace(/</g, "<"), text = text.replace(/>/g, ">"), text = can.page.Color(text||"")
|
||||||
|
text = can.page.Color(text||"")
|
||||||
|
var code = text && can.page.Append(can, target||can._output, [{text: [text, "div", "code"]}]).code
|
||||||
can.page.Select(can, code, "input[type=button]", function(target) {
|
can.page.Select(can, code, "input[type=button]", function(target) {
|
||||||
target.onclick = function(event) {
|
target.onclick = function(event) {
|
||||||
var msg = can.sup.request(event, can.Option())
|
var msg = can.sup.request(event, can.Option())
|
||||||
|
Loading…
x
Reference in New Issue
Block a user