We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 8135851 commit 346360aCopy full SHA for 346360a
modules/JC.Panel/0.3/Panel.default.js
@@ -137,6 +137,11 @@
137
typeof _headers == 'string' && ( _headers = _headers.trim().replace( /[\r\n]+/g, '') );
138
typeof _bodys == 'string' && ( _bodys = _bodys.trim().replace( /[\r\n]+/g, '') );
139
140
+ if( typeof _selector == 'string' ){
141
+ /<html>/i.test( _selector ) && ( _selector = '<div>error with html tag</div>' );
142
+ }
143
+
144
145
if( Panel.getInstance( _selector ) ) return Panel.getInstance( _selector );
146
/**
147
* 存放数据的model层, see <a href='JC.Panel.Model.html'>Panel.Model</a>
0 commit comments