wxd
/
MShopWeApp
Toggle navigation
Sign in
Sign in
Project
Files
Commits
Network
Graphs
Milestones
Issues
0
Merge Requests
0
Labels
Wiki
Download as
Email Patches
Plain Diff
Browse Code »
Commit
2d88577467aef9d3fddbe8c7cb796bb39bbba2f8
Authored by
yvan.ni
2020-11-28 14:42:47 +0800
1 parent
ae7abb00
indexOf 要判断是不是空
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
1 deletions
components/diy_notice/g_filter.wxs
components/diy_notice/g_filter.wxs
View file @
2d88577
1
1
var g_filters = {
2
2
has_char:function(url,key){
3
- return url.indexOf(key);
3
+ if(!url) return -1;
4
+ return url.indexOf(key);
4
5
}
5
6
}
6
7
module.exports = {
...
...