0

javascipt の < を関数 match() と一致させるために競合があります。同じ行コードが wamp では機能しますが、lampp(linux) では機能しないことに注意してください。

with test, I notifie that the problem comes  from <? :
there's a warning 'parse error unexpected ')' in ....... '
but there will not be warning if I remove < or ? or <?.

コードは次のとおりです。

var res=str.match(/[^<>]*<\w+ nom?="([^<>]*)">[^<>]*(<?[\s\S]*)/);

では、どうすればこの問題を解決できますか? 助けてください。


同じ問題があり、提示されたモーダルビューのアニメーションを閉じることで修正できました:YES.

[self dismissViewControllerAnimated:YES completion:nil];

それが役立つことを願っています!

4

1 に答える 1