attr指令不再解析style
parent
3d88404c57
commit
ed0adceef7
|
@ -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)
|
||||
|
|
Reference in New Issue