js如何用正则校验是否包含中括号【】或者[]?校验是否包含中括号【】或者[]的javascript正则表达式 [|]|【|】g完整的javascript校验程序如下<html><head><script type=2023-04-26JavaScript270