This repository has been archived on 2023-08-30. You can view files and clone it, but cannot push or open issues/pull-requests.
bytedo
/
wcui
Archived
1
0
Fork 0

attr指令不再解析style

old
宇天 2017-09-19 11:19:07 +08:00
parent 3d88404c57
commit ed0adceef7
2 changed files with 8 additions and 0 deletions

View File

@ -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)

View File

@ -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)