JS如何从字符串中提取端口号String.prototype.getQuery = function(name){var reg = new RegExp("(^|&)"+ name +"=([^&]*)(&a2023-02-21JavaScript110