• 1
预览模式: 普通 | 列表

问题现象:如题

原因与解决方案:

      发现很有很多字体被定义了 Chinese_PRC_CI_AS集合字体,导致无法运行

从生成的SQL中查询 “collate Chinese_PRC_CI_AS” 替换为空

查看更多...

分类:Javascript jQuery | 固定链接 | 评论: 0 | 引用: 0 | 查看次数: 157

要查找的内容:

<a class=”class1” href=”http://www.radys.cn”>正则一</a>

<a href=”http://www.radys.cn” target=”_blank”>正则二a>

<a href=”http://www.radys.cn” style=”color:#ff0”>正则三</a>

查看更多...

分类:Javascript jQuery | 固定链接 | 评论: 0 | 引用: 0 | 查看次数: 138

editplus 正则替换

我使用的是Editplus v3.10

打开 Search->Relpace或者 ctrl + h

勾选 “Regular expression”

这时可以使用正表达试来处理文档了

查看更多...

分类:Javascript jQuery | 固定链接 | 评论: 0 | 引用: 0 | 查看次数: 134

The security settings could not be applied

之前系统为2003系统安装的mysql版本是5.0.22

系统升级为window 7后,我重新安装mysql 5.5,结果总是提示如下错误

The security settings could not be applied.
Error Number 1045.
Access denied for user 'root'@'localhost'(using password:YES)

 

查看更多...

分类:Javascript jQuery | 固定链接 | 评论: 1 | 引用: 0 | 查看次数: 183

由于命名空间改变,unsafeWindow下无法调用GM_getValue和GM_setValue如下

//使用正常

GM_setValue(‘foo’,true);

GM_etValue(‘foo’);

查看更多...

Tags: userscript GreaseMonkey GM_setValue GM_getValue

分类:Javascript jQuery | 固定链接 | 评论: 0 | 引用: 0 | 查看次数: 148

jQuery数组判等 equal array in jQuery

//equal array in jQuery
jQuery.fn.compare = function(t) {
    if (this.length != t.length) { return false; }
    var a = this.sort(),
        b = t.sort();
    for (var i = 0; t[i]; i++) {
        if (a[i] !== b[i]) {
                return false;
        }
    }
    return true;
};

整理自 http://stackoverflow.com/questions/1773069/using-jquery-to-compare-two-arrays

Tags: jQuery 数组比较

分类:Javascript jQuery | 固定链接 | 评论: 0 | 引用: 0 | 查看次数: 174
  • 1