我的知识库

知识等于力量

« 提高网站速度的最佳实践JMS初步研究与其他消息服务集成技术的对比 »

Mysql(SaaS)数据库设计要点

CmdUtils.CreateCommand({
    name: "dudu",
    takes: {"tag name": noun_arb_text},
    icon: "http://www.duduwolf.com/image/favicon.ico",

    _content: function(){
        return CmdUtils.getSelection();
    },

    _getTitle: function() {
        return window.document.title;
    },

    _getUrl: function() {
        return Application.activeWindow.activeTab.document.URL;
    },

    preview: function( pblock ) {
        var msg = '<div>文档标题为:<span style="color:green;font-weight:bold;">${title}</div><div>文档URL为:<span style="color:green;font-weight:bold;">${url}</span></div>';
        pblock.innerHTML = CmdUtils.renderTemplate(msg, {title: this._getTitle(), url: this._getUrl()});
    },

    execute: function() {
        Utils.openUrlInBrowser('http://www.duduwolf.com/KMS_ADMIN/kms_add.asp?l=' + encodeURIComponent(this._getUrl()) + '&t=' + encodeURIComponent(this._getTitle()));
    }
})

Search

导航

热门文章

最新文章

Powered By duduwolf's wiki 1.0

Copyright 1999-2007 duduwolf.com Some Rights Reserved.