diff --git a/js/yua-touch.js b/js/yua-touch.js index d1a79bb..d5c1074 100644 --- a/js/yua-touch.js +++ b/js/yua-touch.js @@ -3606,6 +3606,10 @@ var attrDir = yua.directive("attr", { } for(var i in obj){ + if(i === 'style'){ + console.error('设置style样式, 请改用 :css指令') + continue + } if(i === 'href' || i === 'src'){ //处理IE67自动转义的问题 if(!root.hasAttribute) diff --git a/js/yua.js b/js/yua.js index aa36cbe..8e6ab28 100644 --- a/js/yua.js +++ b/js/yua.js @@ -3609,6 +3609,10 @@ var attrDir = yua.directive("attr", { } for(var i in obj){ + if(i === 'style'){ + console.error('设置style样式, 请改用 :css指令') + continue + } if(i === 'href' || i === 'src'){ //处理IE67自动转义的问题 if(!root.hasAttribute)