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]*)/);
では、どうすればこの問題を解決できますか? 助けてください。