meta

javascript的基础知识点

狂风中的少年 提交于 2019-12-13 00:25:46
一:鼠标提示框 需求描述:鼠标移入都input上,div显示,移出,div消失 分析:控制display=block/none 鼠标移入,鼠标移出事件 <input type="button" onmouseover="alert('鼠标移入')" onmouseout="alert('鼠标移出')"> 功能代码 <!DOCTYPE html> <html lang="en"> <head> <meta charset="UTF-8"> <meta name="viewport" content="width=device-width, initial-scale=1.0"> <meta http-equiv="X-UA-Compatible" content="ie=edge"> <title>Document</title> <style> #div1 { width: 200px; height: 100px; background-color: gray; display: none; } </style> </head> <body> <input type="button" onmouseover="div1.style.display='block'" onmouseout="div1.style.display='none'"> <div id="div1"

vue性能优化

大城市里の小女人 提交于 2019-12-12 23:58:19
最近用vue-cli3搭建项目,由于项目比较大,业务逻辑比较多,导致了打包后文件比较大,导致首页页面白屏时间过长,用户体验不友好,可以往下面几个方法进行处理。 js,css代码的最小化压缩和分割 核心组件的cdn加载 路由和组件懒加载 gzip的压缩 去除console.log 公共代码抽离 js,css代码的最小化压缩和分割 核心组件的cdn加载 根目录的vue.config.js 配置修改 // 修改原生webpack配置 chainWebpack:(config)=>{} // webpack配置 const isProduction = process . env . NODE_ENV === 'production' ; if ( isProduction ) { // 压缩代码 config . optimization . minimize ( true ) ; // 分割代码 config . optimization . splitChunks ( { chunks : 'all' } ) //核心组件生产环境外部引入cdn var externals = { 'vue' : 'Vue' , 'vuex' : 'Vuex' , 'vue-router' : 'VueRouter' , 'axios' : 'axios' , 'iview' : 'iview' ,

HBase>HBase底层原理

末鹿安然 提交于 2019-12-12 23:40:42
文章目录 系统架构 HBase的表数据模型 Row Key 列族Column Family 列 Column 时间戳 Cell VersionNum 物理存储 1、整体结构 2、STORE FILE & HFILE结构 3、Memstore与storefile 4、HLog(WAL log) 读写过程 1、读请求过程: 2、写请求过程: Region管理 Master工作机制 系统架构 Client 1 包含访问hbase的接口, client维护着一些cache来加快对hbase的访问 ,比如regione的位置信息。 Zookeeper 1 保证任何时候,集群中只有一个master 2 存贮所有Region的寻址入口 3 实时监控Region Server的状态,将Region server的上线和下线信息实时通知给Master 4 存储Hbase的schema,包括有哪些table,每个table有哪些column family Master职责 1 为Region server分配region 2 负责region server的负载均衡 3 发现失效的region server并重新分配其上的region 4 HDFS上的垃圾文件回收 5 处理schema更新请求 Region Server职责 1 Region server 维护Master分配给它的region

手机页面制作流程或方法

女生的网名这么多〃 提交于 2019-12-12 14:17:26
【推荐】2019 Java 开发者跳槽指南.pdf(吐血整理) >>> 怎么制作手机网页 http://jingyan.baidu.com/article/4dc40848bcb0d0c8d946f121.html 自适应网页设计的方法(手机端良好的访问体验)http://www.jb51.net/web/123447.html 最佳网页宽度及其兼容实现方法http://www.jb51.net/web/22867.html 【<meta name="description" content=">】作用讲解 http://blog.sina.com.cn/s/blog_7f47d740010143be.html meta标签中的http-equiv属性使用介绍http://www.jb51.net/web/70787.html PC网站自动适配手机网页的方法技巧http://www.mahaixiang.cn/ydseo/1369.html 7个步骤让PC网站自动适配手机网页http://qietuwang.baijia.baidu.com/article/83919 __________________ 怎么快速将css中的px替换成rem ?答:看看这个: https://github.com/imochen/ho... 这个解决方案可以帮到你,完美适配个移动终端,hotcss

html php meta charset UTF-8 not working? [duplicate]

℡╲_俬逩灬. 提交于 2019-12-12 10:10:12
问题 This question already has answers here : Closed 7 years ago . Possible Duplicate: Browser displays � instead of ´ i'm kind of stuck on a php file with almost only html in it. I use PHP only to send information from a contact form to my mail adres. When developing the website on localhost everything was all fine. After uploading to my server it messes up the special characters. My meta tag looks like this: <meta http-equiv="Content-Type" content="text/html; charset=UTF-8" /> If someone could

Displaying timeout warning within jQuery

怎甘沉沦 提交于 2019-12-12 05:50:06
问题 I currently handle timing out from a PHP web application as such: Each page currently has a timeout check in PHP, which checks the current time against the last page load by the user. If the difference between the two exceeds 15 minutes, the user's session is destroyed, a new session is created, the current page location is put onto the session and the user is redirected to the login page. Each page head has a <meta> tag which refreshes the page after 15 minutes and 5 seconds (thus "calling"

Buffer more information with PHP buffer

我是研究僧i 提交于 2019-12-12 04:48:32
问题 I looking for the sollution buffering more texts. I have the following (Set Page Title using PHP) <? ob_start (); ?> <!DOCTYPE> <head> <title><!--TITLE--></title> </head> <body> <? $pageTitle = 'Title of Page'; // Call this in your pages' files to define the page title ?> </body> </html> <? $pageContents = ob_get_contents (); // Get all the page's HTML into a string ob_end_clean (); // Wipe the buffer // Replace <!--TITLE--> with $pageTitle variable contents, and print the HTML echo str

HTML - Prevent horizontal scrolling when zooming in on mobile

倾然丶 夕夏残阳落幕 提交于 2019-12-12 03:22:11
问题 When you zoom in an ordinary web page (without any meta tags) on desktop browsers, the page width will change to fit the screen. However when zooming in on mobile browsers, you will get a horizontal scrolling bar which is quite annoying. Can I achieve the same results on mobile browsers? Example: http://motherfuckingwebsite.com/ Zoom in to 500% on desktop browsers: no horizontal scrollbar. Zoom in a little bit on mobile browser: HORIZONTAL SCROLLBAR!!!! 来源: https://stackoverflow.com/questions

How to render whatsapp content in preview dynamically?

爱⌒轻易说出口 提交于 2019-12-12 01:42:28
问题 I have an application where i use dynamically rendering of meta tags. I am using pre render services to render meta content dynamically. It works for facebook, google..etc but for whatsapp it is not able capture dynamic content. It is showing like {{meta.content}}. How can i remove preview from whatapp while sharing from js? Is there any solution to capture preview dynamically? 回答1: If you want to render dynamic content that you need take help of .htaccess. RewriteCond %{HTTP_USER_AGENT}

2019 SDN上机第7次作业

柔情痞子 提交于 2019-12-12 01:39:56
1.补充并运行basic代码 补充basic代码 /* -*- P4_16 -*- */ #include <core.p4> #include <v1model.p4> const bit<16> TYPE_IPV4 = 0x800; /************************************************************************* *********************** H E A D E R S *********************************** *************************************************************************/ typedef bit<9> egressSpec_t; typedef bit<48> macAddr_t; typedef bit<32> ip4Addr_t; header ethernet_t { macAddr_t dstAddr; macAddr_t srcAddr; bit<16> etherType; } header ipv4_t { bit<4> version; bit<4> ihl; bit<8> diffserv; bit<16> totalLen; bit<16>