Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
我有类似的字符串962=962&961=961&485=485
962=962&961=961&485=485
我想将值保存到数组中。
我可能会问一个愚蠢的问题,但我被困在这里。
谢谢
如果您想要所有值,可以将正则表达式传递给split():
>>> "962=962&961=961&485=485".split(/[=&]/) ["962", "962", "961", "961", "485", "485"]
我已经进行了长时间的努力寻找并试图弄清楚为什么 GridUnload 对我没有任何乐趣。因此,如果您发现这是重复的,请原谅。
我在 jQuery.dialog 中显示一个 jqGrid。第一次显示没有问题。当我关闭对话框并再次触发时,jqGrid 不显示。该对话框基于登录操作的 AJAX 响应触发。如果对话框关闭,我想卸载网格,这样如果再次尝试登录操作,它将再次显示对话框和网格。第二次网格是空白的