This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#********************************************************************** | |
# 12.28 | |
# 2020年12月28日20:29:54 | |
# 转载需要注明版权和来源 | |
# | |
# 屏蔽常用网站、视频、手机rom广告&运营商劫持广告&数据跟踪&开屏广告 | |
# | |
# 参照lhie1的surge规则改编,致谢!! https://github.com/lhie1/Surge | |
# 参照scomper的surge规则改编,致谢!! https://gist.github.com/scomper/915b04a974f9e11952babfd0bbb241a8/revisions | |
# |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
在技术社区或论坛中,某一个技术或观点可能会引起用户的广泛讨论,甚至争吵。但也有一些技术帖子则比较平静。 | |
James Padolsey观察了一些JavaScript社区,总结出了开发者更关心JavaScript的哪些方面,或哪些技术更容易引起开发者之间的激烈讨论。 | |
以下是容易引起开发者激烈讨论的主题: | |
自动插入分号 | |
eval是令人讨厌的 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
(function($){ | |
$.fn.flickrPhoto = function(options){ | |
var settings = $.extend({ | |
url : 'http://www.flickr.com/photos/markyun/11532861994/', | |
key : 'a66ae3b787a9d02a3da0f2b63ac621be', | |
secret : '89f35a97fe9d0df6' | |
}, options), | |
id, | |
method = 'flickr.photos.getInfo', | |
format = 'json', |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<html> | |
<head> | |
<meta content="text/html; charset=UTF-8" http-equiv="Content-Type"> | |
<title> | |
markyun - Bookmarks | |
</title> | |
<script language="javascript" src="https://ajax.googleapis.com/ajax/libs/jquery/1.8.2/jquery.min.js | |
"></script> | |
<style> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
delete操作符(一) | |
Published by 陈漫凯 | on March 19, 2012 | Posted in 豆知识 | |
这里想分享的是,一个大家可能挺熟悉,却挺少用的操作符,delete操作符。 | |
什么是delete操作符 | |
delete操作符,可以用于删除对象的属性,或者数组的某个值,如果删除成功则返回true。 | |
语法 | |
delete一元表达式 | |
很简单的语法,可以这样使用 | |
/* 代码片断1 */ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<html> | |
<head> | |
<meta http-equiv="Content-Type" content="text/html; charset=gb2312"> | |
<title>简单的jquery插件写法之一</title> | |
</head> | |
<body> | |
<ul id="catagory"> | |
<li><a href="#">jQuery</a></li> | |
<li><a href="#">html5</a></li> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<!DOCTYPE html> | |
<htmlang = "en"> | |
<head> | |
<meta charset = "utf-8"> | |
<title>HTML5 Demo</title> | |
<body> | |
<header> | |
<hgroup> | |
<h1>HTML5布局教程</h1> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/*----------------------------css-----------------------------------*/ | |
<style type="text/css"> | |
body{background: #000} | |
body,img{margin: 0;padding: 0} | |
.box{padding: 20px;} | |
.box .col{width: 214px;margin-right: 15px;float: left;} | |
.box a{display: block;padding: 5px;border: 1px solid #222;background-color: #000;text-decoration:none;margin-bottom: 20px;text-align: center;} | |
.box a:hover{background: #ff3b26;cursor: pointer;} | |
.box img{} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<!DOCTYPE html> <!-- 使用 HTML5 doctype,不区分大小写 --> | |
<html lang="zh-cmn-Hans"> <!-- 更加标准的 lang 属性写法 http://zhi.hu/XyIa --> | |
<head> | |
<meta charset='utf-8'> <!-- 声明文档使用的字符编码 --> | |
<meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1" /> <!-- 优先使用 IE 最新版本和 Chrome --> | |
<meta name="description" content="不超过150个字符" /> <!-- 页面描述 --> | |
<meta name="keywords" content=""/> <!-- 页面关键词 --> | |
<meta name="author" content="name, [email protected]" /> <!-- 网页作者 --> | |
<meta name="robots" content="index,follow" /> <!-- 搜索引擎抓取 --> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/** | |
* 从匹配的每个元素上,移除 一个 或 多个 或 全部class | |
* | |
* .removeClass( [className] ) | |
* className 一个或多个以空格分隔的class,这些class将被从匹配元素的class属性中溢出 | |
* | |
* .removeClass( function(index, class) ) | |
* function(index, class) 函数返回一个或多个以空格分隔的class,用于移除。 | |
* index 当前元素在匹配元素集合中的位置, class 旧class值 | |
* 核心技巧:前后加空格 + replace |
NewerOlder