From eb7afae2fc67af0e0c27a25ca31035eaf4def7d3 Mon Sep 17 00:00:00 2001 From: shaoying Date: Wed, 11 Dec 2019 09:36:27 +0800 Subject: [PATCH] add can layout --- usr/librarys/example.js | 10 +++++++--- 1 file changed, 7 insertions(+), 3 deletions(-) diff --git a/usr/librarys/example.js b/usr/librarys/example.js index a128ea21..84b7085e 100644 --- a/usr/librarys/example.js +++ b/usr/librarys/example.js @@ -154,10 +154,9 @@ function Page(page) { page.Status() } + // 事件回调 - window.onresize = function(event) { - page.onlayout(event) - }, document.body.onkeydown = function(event) { + document.body.onkeydown = function(event) { // page.oncontrol(event) || page.onscroll(event) }, document.body.onkeyup = function(event) { }, document.body.oncontextmenu = function(event) { @@ -165,6 +164,11 @@ function Page(page) { }, document.body.onmousedown = function(event) { }, document.body.onmouseup = function(event) { } + + if (ctx.Search("feature") != "") {return} + window.onresize = function(event) { + page.onlayout(event) + } }, oninput: function(event, local) {var target = event.target kit.History("key", -1, (event.ctrlKey? "Control+": "")+(event.shiftKey? "Shift+": "")+event.key)