Posts

Showing posts from September, 2017

SEO 搜索引擎 学习笔记

seo search engine optimization 搜索引擎优化 sem seach engine marketing 搜索引擎营销 difference: seo=free  VS sem=lots pays 对比: SEO低投入,SEM高投入 SEM短,效益快,SEO长期投入,增长慢 新广告法颁布后SEM广告位减少、竞争压力大 IP:独立IP访问的用户 PV:页面浏览量或者点击量 UV:独立访客数 搜索引擎前身:导航网址。 早期搜索引擎:雅虎、谷歌。 搜索引擎占有率工具:statcounter。 SEO排名机制: 搜索引擎蜘蛛,抓起网页内容,存储到相应内容数据库分类。 权重,分为十个等级。 权重的提升: 搜索引擎提交入口: 百度、谷歌、360、搜狗、必应 SEO优化三要素:标题、关键词、描述 外链(友情链接)网站与网站之间的链接向导 与内容相近的网站交换。 链接交换形式多样。单向链接 灌水式外链。 内链 提升页面抓取率 内容质量:更新网站内容,网站内容质量,编辑的原创性,关键词密度2%-8% 黑帽和沙盒: 黑帽是不正当的方式。购买外链,垃圾网站例如非法网站。黑客行为。 沙盒类似于小黑屋,需要观望。 浏览量提升: 话术设置:标题和描述 关键词挖掘:头脑风暴。利用搜索引擎相关搜索,参考百度指数或者根据SEO长尾理论。 域名的选择:后缀选择(.com .net .org.edu)。短域名。域名语义。域名使用历史查询。 服务器的选择:响应速度快。稳定。 代码优化:代码去冗余,精简化、模块化。自动化(grunt、gulp、webpack、tinyPNG...)。语义化。 HTTP状态码:200(2开头表示网页响应成功)。300(302、304重定向)。404(网页不存在)、500(5、6开头的表示服务器错误)。 站群推广:淘宝客。镜像网站。站群模式。 其他:提升客户体验(易用性、UI优化)。内容形式多样(视频、奇思妙想)。代码属性的优化(alt title logo)。相关搜索引擎产品协助(文库、问答)。 SEO质量检测: 日志分析:1.每个搜索引擎的总体抓取量 2.记录搜索引擎蜘蛛的不重复抓取量 3.每个目录每个搜索引擎的抓取量 4.统计搜索引擎

jQuery-confirm---a multipurpose plugin for alert, confirm & dialog, with Super powers.

Image
JQuery-confirm is  a jQuery plugin that provides great set of features like, Auto-close, Ajax-loading, Themes, Animations and more.   Featurers: Listen keyboard keys Directly load content via Ajax Auto-close dialog after a specified time prevent Dialog close on background click callback function, and ton more Github  here More documents  here Step1: head body bottom Link jquery-confirm plugin via CDN: <link rel = "stylesheet" href = "https://cdnjs.cloudflare.com/ajax/libs/jquery-confirm/3.3.0/jquery-confirm.min.css" > <script type="text/javascript" src="https://cdnjs.cloudflare.com/ajax/libs/jquery/3.2.1/jquery.min.js"></script> <script src = "https://cdnjs.cloudflare.com/ajax/libs/jquery-confirm/3.3.0/jquery-confirm.min.js" ></script> via Bower: Simply copy these links   $ bower install craftpip / jquery - confirm via Npm:   $ npm

Get Geolocation Data with Javascript

The navigator will get our user's current longitude and latitude. You will see a prompt to allow or block this site from knowing your current location. The challenge can be completed either way, as long as the code is correct. By selecting allow you will see the text on the output phone change to your latitude and longitude Here's some code that does this: if (navigator.geolocation) { navigator.geolocation.getCurrentPosition(function(position) { $("#data").html("latitude: " + position.coords.latitude + "<br>longitude: " + position.coords.longitude); }); }

Cavas Basics

Drawing Rectangles. We can use what we already know about rectangles to "erase" portions of a canvas using  fillRect  and setting the  fillStyle  to our background color. Your background color will likely be  white . You haven't learned about  fillStyle  yet but trust me on this, that's how you set a color. So don't act surprised when it comes up again in a couple videos. clearRect  is an easier way to do the same thing without modifying the  fillStyle . You'll learn more why changing the  fillStyle  isn't always the best option a bit later. If you have a canvas  c  and given some code to draw a rectangle in a given color, you might write something like var c = document.querySelector("#c"); var ctx = c.getContext("2d"); ctx.fillStyle = "blue"; // Start at (0,0) and draw a 50px x 50px blue rectangle. ctx.fillRect(0,0,50,50); // Start at (0,0) and clear a 25px x 25px rectangle. ctx.clearRect(0,0,25,25); If you want to