日记首页
|
列表
|
添加日记
|
管理登陆
标题:在html(asp)中链接,端口自动补全:8080
<div class="paragraph" style="font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", system-ui, -apple-system, "Segoe UI", Roboto, Ubuntu, Cantarell, "Noto Sans", sans-serif, Arial, "PingFang SC", "Source Han Sans SC", "Microsoft YaHei UI", "Microsoft YaHei", "Noto Sans CJK SC", sans-serif; font-size: var(--markdown-B1_Content-font-size); margin: 0px 0px 16px; padding: 0px; border: 0px; font-variant-numeric: inherit; font-variant-east-asian: inherit; font-stretch: inherit; line-height: var(--markdown-B1_Content-line-height); vertical-align: baseline; letter-spacing: 0px; max-width: 100%; white-space: pre-wrap; word-break: break-word; text-shadow: none; color: rgba(0, 0, 0, 0.9);">下面这段代码<span style="font-family: inherit; margin: 0px; padding: 0px; border: 0px; font-style: inherit; font-variant: inherit; font-weight: 600; font-stretch: inherit; font-size: inherit; line-height: inherit; vertical-align: baseline;">只动“学生系统”那一个链接</span>,把它里面的<br style="font-family: inherit;"><code data-v-7caec4f8="" data-v-42963975="" class="segment-code-inline" style="font: inherit; margin: 0px 4px; padding: 2px 6px; border: 0px; vertical-align: baseline; color: var(--Labels-Primary); background-color: var(--Fills-F1); border-radius: 4px; max-width: 100%; word-break: break-word; text-shadow: none; overflow: auto;">:8080/xsxt/index.php</code><br style="font-family: inherit;">自动改成<br style="font-family: inherit;"><code data-v-7caec4f8="" data-v-42963975="" class="segment-code-inline" style="font: inherit; margin: 0px 4px; padding: 2px 6px; border: 0px; vertical-align: baseline; color: var(--Labels-Primary); background-color: var(--Fills-F1); border-radius: 4px; max-width: 100%; word-break: break-word; text-shadow: none; overflow: auto;">http://当前域名:8080/xsxt/index.php</code><br></div><div class="paragraph" style="font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", system-ui, -apple-system, "Segoe UI", Roboto, Ubuntu, Cantarell, "Noto Sans", sans-serif, Arial, "PingFang SC", "Source Han Sans SC", "Microsoft YaHei UI", "Microsoft YaHei", "Noto Sans CJK SC", sans-serif; font-size: var(--markdown-B1_Content-font-size); margin: 0px 0px 16px; padding: 0px; border: 0px; font-variant-numeric: inherit; font-variant-east-asian: inherit; font-stretch: inherit; line-height: var(--markdown-B1_Content-line-height); vertical-align: baseline; letter-spacing: 0px; max-width: 100%; white-space: pre-wrap; word-break: break-word; text-shadow: none; color: rgba(0, 0, 0, 0.9);">把下面 6 行放到 <code data-v-7caec4f8="" data-v-42963975="" class="segment-code-inline" style="font: inherit; margin: 0px 4px; padding: 2px 6px; border: 0px; vertical-align: baseline; color: var(--Labels-Primary); background-color: var(--Fills-F1); border-radius: 4px; max-width: 100%; word-break: break-word; text-shadow: none; overflow: auto;"></body></code> 前即可,<span style="font-family: inherit; margin: 0px; padding: 0px; border: 0px; font-style: inherit; font-variant: inherit; font-weight: 600; font-stretch: inherit; font-size: inherit; line-height: inherit; vertical-align: baseline;">其它链接一律不动</span>。</div><div class="paragraph" style="margin: 0px 0px 16px; padding: 0px; border: 0px; font-variant-numeric: inherit; font-variant-east-asian: inherit; font-stretch: inherit; line-height: var(--markdown-B1_Content-line-height); vertical-align: baseline; max-width: 100%; word-break: break-word; text-shadow: none;"><font face="Arial"><span style="font-size: 10.5pt;"> </span></font><font color="#ba0000" face="-apple-system, BlinkMacSystemFont, Segoe UI, system-ui, -apple-system, Segoe UI, Roboto, Ubuntu, Cantarell, Noto Sans, sans-serif, Arial, PingFang SC, Source Han Sans SC, Microsoft YaHei UI, Microsoft YaHei, Noto Sans CJK SC, sans-serif"><span style="font-size: 14px; white-space: pre-wrap;"><footer> <a href=":8080/xsxt/index.php" target="_blank"">学生系统</a> <script> /* 为超链接自动添加8080 */ (function(){ const a = document.querySelector('footer a[href=":8080/xsxt/index.php"]'); if (a) { // 找到目标链接才继续 a.href = `http://${location.hostname}:8080/xsxt/index.php`; } })(); </script> </footer></span></font></div><div class="paragraph" style="font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", system-ui, -apple-system, "Segoe UI", Roboto, Ubuntu, Cantarell, "Noto Sans", sans-serif, Arial, "PingFang SC", "Source Han Sans SC", "Microsoft YaHei UI", "Microsoft YaHei", "Noto Sans CJK SC", sans-serif; font-size: var(--markdown-B1_Content-font-size); margin: 0px 0px 16px; padding: 0px; border: 0px; font-variant-numeric: inherit; font-variant-east-asian: inherit; font-stretch: inherit; line-height: var(--markdown-B1_Content-line-height); vertical-align: baseline; letter-spacing: 0px; max-width: 100%; white-space: pre-wrap; word-break: break-word; text-shadow: none; color: rgba(0, 0, 0, 0.9);"><span style="font-size: 16px;">保存后刷新页面,点“学生系统”就会正常跳到</span><br style="font-size: 16px;"><code data-v-7caec4f8="" data-v-42963975="" class="segment-code-inline" style="font-family: inherit; margin: 0px 4px; padding: 2px 6px; border: 0px; font-variant-numeric: inherit; font-variant-east-asian: inherit; font-stretch: inherit; font-size: 16px; line-height: inherit; vertical-align: baseline; background-color: var(--Fills-F1); border-radius: 4px; max-width: 100%; word-break: break-word; text-shadow: none; overflow: auto;">http://670259.xyz:8080/xsxt/index.php</code><br style="font-size: 16px;"><span style="font-size: 16px;">(端口已自动补全)。</span></div>