摘要: 官网演示:https://jsplumbtoolkit.com/demo/flowchart/dom.html例子: 阅读全文
posted @ 2014-12-12 10:55 feilv 阅读(3292) 评论(0) 推荐(0) 编辑
摘要: 回调函数#include void fun(char* str){ printf("%s\n", str);}void callback(void (*pfun)(char*), char* s){ pfun(s);}int main(){ callback(fun, "hello... 阅读全文
posted @ 2014-12-09 09:55 feilv 阅读(260) 评论(0) 推荐(0) 编辑
摘要: 观察者模式又叫发布订阅模式(publish/subscribe)、模型视图模式(model/view)、源/监听器模式(source/listener),它定义了一种一对多的依赖关系,让多个观察者对象同时监听某一个主题对象。下面是不同编程语言实现的实例。1、java实现package com.sam... 阅读全文
posted @ 2014-12-08 17:23 feilv 阅读(241) 评论(0) 推荐(0) 编辑
摘要: raphael+jquery实现拖动示例测试1测试2测试3测试4 阅读全文
posted @ 2014-12-05 15:36 feilv 阅读(730) 评论(0) 推荐(0) 编辑
摘要: public class ThreadTest { public static void main(String[] args) { MyThread1 thread1 = new MyThread1(); thread1.start(); MyThread2 thread2 = new My... 阅读全文
posted @ 2014-11-28 17:18 feilv 阅读(135) 评论(0) 推荐(0) 编辑
摘要: global.css@charset "utf-8";body { margin: 0 auto; font-size: 12px; font-family: Verdana; line-height: 1.5;}ul, dl, dd, h1, h2, h3, h4, h5, h6, form, p... 阅读全文
posted @ 2014-11-28 16:53 feilv 阅读(247) 评论(0) 推荐(0) 编辑
摘要: *.javapackage com.sample;public class NumGuessMain{ public static void main(String[] args) { KnowledgeBuilder kbuilder = KnowledgeBuilderFactory.newK... 阅读全文
posted @ 2014-11-27 16:27 feilv 阅读(726) 评论(0) 推荐(0) 编辑
摘要: List使用List lst = new ArrayList();//List是接口,ArrayList是实现类list.add("hello");//添加list.removeAt(0);//删除list.get(0);//获得Int32[] vals = (Int32[])list.toArra... 阅读全文
posted @ 2014-11-25 17:22 feilv 阅读(285) 评论(0) 推荐(0) 编辑
摘要: 1. 注释sql:--一行,/**/多行(每行sql语句以分号结尾)2. 执行sql脚本:>source 1.sql;>\. 1.sql3.>select version(), current_date, now(), user();--查看版本、日期、时间、登录用户>select database... 阅读全文
posted @ 2014-11-13 17:42 feilv 阅读(147) 评论(0) 推荐(0) 编辑
摘要: 方式1. 构造函数绑定function A() { this.am = "aaa"; this.af = function() { console.log("aaafff"); }}function B() { A.call(this, arguments);//A.apply(thi... 阅读全文
posted @ 2014-11-13 16:36 feilv 阅读(167) 评论(0) 推荐(0) 编辑