HTML问题,a href =" "和 a href ="#"这两个有什么区别?

时间:2023-01-22 12:13:55

a href ="" 默认打开的还是当前页面,会刷新一下重新打开。
a href ="#" 浏览器地址栏网址后面会多显示1个#。不会刷新页面,会回到页面顶部。

HTML问题,a href =" "和 a href ="#"这两个有什么区别?的更多相关文章

  1. 关于js中window.location.href,location.href,parent.location.href,top.location.href的用法

    "window.location.href"."location.href"是本页面跳转 "parent.location.href"是上一 ...

  2. window.location.href = window.location.href 跳转无反应 a 超链接 onclick 点击跳转无反应

    错误写法 , 主要是在 href="#"这里 <a href="#" id="send" onclick="return b ...

  3. 关于js中&quot&semi;window&period;location&period;href&quot&semi;、&quot&semi;location&period;href&quot&semi;、&quot&semi;parent&period;location&period;href&quot&semi;、&quot&semi;top&period;location&period;href&quot&semi;的用法

    location.href 和 window.location.href 区别: 1.location.href 可以直接跳转其他地址(不属于本项目) 也可以跳转本项目中的 2.window.loca ...

  4. window&period;location&period;href和window&period;open的几种用法和区别

    使用js的同学一定知道js的location.href的作用是什么,但是在js中关于location.href的用法究竟有哪几种,究竟有哪些区别,估计很多人都不知道了. 一.location.href ...

  5. 关于js中window&period;location&period;href&comma;location&period;href&comma;parent&period;location&period;href&comma;top&period;location&period;href的用法与区别&lpar;跳出iframe方法&rpar;

    "window.location.href"."location.href"是本页面跳转 "parent.location.href"是上一 ...

  6. 关于js中window&period;location&period;href&comma;location&period;href&comma;parent&period;location&period;href&comma;top&period;location&period;href的使用方法

    关于js中"window.location.href"."location.href"."parent.location.href".&qu ...

  7. 关于js中window&period;location&period;href&comma;location&period;href&comma;parent&period;location&period;href&comma;top&period;location&period;href用法

    "window.location.href"."location.href"是本页面跳转 "parent.location.href"是上一 ...

  8. window&period;location&period;href &equals; window&period;location&period;href window&period;location&period;reload&lpar;&rpar;

    w 0-会议预订提交了预订日期,预订成功后默认显示仅显示当前日期的新页面若显示预定日的信息,则可以对预定日存入cookie: http://*.com/questions/24 ...

  9. &quot&semi;window&period;location&period;href&quot&semi;、&quot&semi;location&period;href&quot&semi;是本页面跳转

    "window.location.href"."location.href"是本页面跳转 "parent.location.href"是上一 ...

  10. res&lowbar;d&lowbar;l &equals;&lbrack;&lbrace;&&num;39&semi;contents&&num;39&semi;&colon;d&period;contents&comma;&&num;39&semi;href&&num;39&semi;&colon;d&period;attrs&lbrack;&&num;39&semi;href&&num;39&semi;&rsqb;&rcub; for d in rd&rsqb; 泛型

    from selenium import webdriverfrom selenium.webdriver.chrome.options import Options# from selenium.w ...

随机推荐

  1. 新版汉诺塔&lpar;UVa10795 - A Different Task&rpar;

    题目介绍: 标准的汉诺塔上有n个大小各异的盘子.现给定一个初始局面(见图1),求它到目标局面(见图2)至少需要移动多少步? 移动规则:一次只能移动一个盘子:且在移动盘子之前,必须把压在上面的其他盘子先 ...

  2. Tomcat自动部署

    在Tomcat的server.xml配置文件中部署 1.在Tomcat下,找到conf文件下的server.xml,打开. 2.在<Host>和</host>之间加上如下代码: ...

  3. 低功耗蓝牙4&period;0BLE编程-nrf51822开发&lpar;10&rpar;-描述符

    特性中的属性有两种:属性值或描述符. 支持通知或指示的特性中默认有一个描述符:客户端特性配置描述符(Client Characteristic Configuration Descriptor,CCC ...

  4. oracle自动执行一个sql文件的脚本

    如图 文件夹 打开文件夹,如图 autoExeSyn-local.bat文件里的内容如下 @echo off -----------用户/密码-实例-------------执行的sql文件---&g ...

  5. 判断鼠标从哪个方向进入--jQuery

    转载自:http://sentsin.com/web/112.html $("#wrap").bind("mouseenter mouseleave",func ...

  6. Repeater

  7. MEF初体验之八:过滤目录

    当在使用子容器的时候,基于某些具体标准来过滤目录可能是重要的.例如,基于部件的创建策略来过滤是很常见的.下面的代码片段演示了如何构建这种特别方法: var catalog = new Assembly ...

  8. leetcode — scramble-string

    import java.util.Arrays; /** * Source : https://oj.leetcode.com/problems/scramble-string/ * * Given ...

  9. 洛谷P1223

    #include <iostream>#include <algorithm>#include <cstdio>using namespace std;int b[ ...

  10. EOJ2018&period;10 月赛

    EOJ2018.10 月赛 题目一览表(Green color indicate understand and Accept) 来源 考察知识点 完成时间 A oxx 的小姐姐们 EOJ 数学+思维 ...