Skip to content

Instantly share code, notes, and snippets.

View MOxFIVE's full-sized avatar

MOxFIVE MOxFIVE

View GitHub Profile
  1. 审查元素,修改相关样式;
  2. 尝试搜索解决方法;
  3. 提取有关源代码模块单独测试;
  4. 在测试模块中实现所需效果;
  5. 重写相关代码到源文件,完善细节效果。
  6. GitHub 版本管理,纪录经验。

Rule: =OR($G1="起诉书",$G1="刑事判决书”)

Applies to =$1:$65536

“$"必不可少

Excel2003 → 65536行,256列;

Excel2007↑ → 1048576行,16384列。

2^10=1024,2^20=1048576,2^7=128, 2^14=16834

避免在<a>标签中嵌套<div>等块级元素,部分模板解析引擎会误解析。如果样式需要可使用<span>等标签代替然后通过css来控制样式

// 不存在
if (!$("element").length) { }
// 存在
if ($("element").length) { }
@MOxFIVE
MOxFIVE / 0_reuse_code.js
Created June 8, 2016 17:07
Here are some things you can do with Gists in GistBox.
// Use Gists to store code you would like to remember later on
console.log(window); // log the "window" object to the console
@MOxFIVE
MOxFIVE / index.html
Created April 23, 2016 06:49
text-overflow: ellipsis
<span>CSS is awesome, especially when you can scroll
to see extra text instead of just
having it overlap other text by default.</span>
<p>CSS is awesome, especially when you can scroll
to see extra text instead of just
having it overlap other text by default.</p>