jQuerySharp

码农软件 · 软件分类 · 其他开发相关 · 2019-10-29 14:42:40

软件介绍

jQuerySharp 是一个用 C# 来编写 jQuery 代码的C#类库,下面是生成的 jQuery 代码示例:

Type.createNamespace('JQuerySharp');

////////////////////////////////////////////////////////////////////////////////
// JQuerySharp.Example

JQuerySharp.Example = function JQuerySharp_Example() {
}
JQuerySharp.Example.prototype = {
   
    run: function JQuerySharp_Example$run() {
        var jq = jQuery('#test');
        jq.append('Some new content').append('A bit more');
        jq.attr('style', 'border:1px');
        if (jQuery.browser.msie) {
            alert('You\'re using IE');
        }
        jQuery('#clickme').click(Delegate.create(this, this.onClick));
        jQuery().ready(Delegate.create(this, this.onReady));
    },
   
    onClick: function JQuerySharp_Example$onClick() {
        jQuery('#newcontent').html('<h1>new stuff here</h1>');
        var test = jQuery('#cloneme').clone();
        var jq = jQuery('#newcontent');
        jq.attr('style', 'color:red').append('<p>This comes from attr</p>');
        jq.append(test);
    },
   
    onReady: function JQuerySharp_Example$onReady() {
        alert('Called from ready');
        var plugin = jQuery('#test');
        plugin.accordion();
    }
}

JQuerySharp.Example.createClass('JQuerySharp.Example');

本文地址:https://www.codercto.com/soft/d/17823.html

父与子的编程之旅

父与子的编程之旅

桑德 (Warren Sande)、桑德 (Carter Sande) / 苏金国、易郑超 / 人民邮电出版社 / 2014-10-1 / CNY 69.00

本书是一本家长与孩子共同学习编程的入门书。作者是一对父子,他们以Python语言为例,详尽细致地介绍了Python如何安装、字符串和操作符等程序设计的基本概念,介绍了条件语句、函数、模块等进阶内容,最后讲解了用Python实现游戏编程。书中的语言生动活泼,叙述简单明了。 为了让学习者觉得编程有趣,本书编排了很多卡通人物及场景对话,让学习者在轻松愉快之中跨入计算机编程的大门。 第 2 版新增内......一起来看看 《父与子的编程之旅》 这本书的介绍吧!

Base64 编码/解码
Base64 编码/解码

Base64 编码/解码

SHA 加密
SHA 加密

SHA 加密工具

XML 在线格式化
XML 在线格式化

在线 XML 格式化压缩工具