Skip to content

Commit 346360a

Browse files
committed
a
1 parent 8135851 commit 346360a

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

modules/JC.Panel/0.3/Panel.default.js

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -137,6 +137,11 @@
137137
typeof _headers == 'string' && ( _headers = _headers.trim().replace( /[\r\n]+/g, '') );
138138
typeof _bodys == 'string' && ( _bodys = _bodys.trim().replace( /[\r\n]+/g, '') );
139139

140+
if( typeof _selector == 'string' ){
141+
/<html>/i.test( _selector ) && ( _selector = '<div>error with html tag</div>' );
142+
}
143+
144+
140145
if( Panel.getInstance( _selector ) ) return Panel.getInstance( _selector );
141146
/**
142147
* 存放数据的model层, see <a href='JC.Panel.Model.html'>Panel.Model</a>

0 commit comments

Comments
 (0)