发表日期: 2022-05-30 21:44:22 浏览次数:98
浙江省绍兴建站公司-一站式/一条龙/响应式/自适应/兼容性/展示型/多语版-【高端网站建设】

唐代时期,属海盐乡。
明洪武初年,属海盐乡十六都。
明万历九年(1581年),属十六都西区。
清末时期,属城区。
民国二十一年(1932年),设立中大、北大、西大、南塘4个镇。
民国二十三年(1934年)7月,中大镇与北大镇合并为中北镇,西大镇与南塘镇合并为西南镇。
民国三十四年(1945年)11月,划出西南镇部分后,设立武原镇。
民国三十八年(1949年)5月,属城郊区人民政府。
1951年3月,成立武原镇人民政府;同年8月,分设富亭乡。
1956年3月,分设城郊乡。
1958年10月,武原镇、城郊乡合并为武原公社。
1959年8月,复置武原镇(为县属镇)。
1961年5月,成立富亭公社、城西公社、海塘公社;同年10月,海塘公社更名城郊公社。
1983年10月,撤社建乡,设富亭乡、城西乡、城郊乡。
1987年5月,城郊乡并入武原镇。
1999年1月,富亭乡并入武原镇;同年11月,城西乡并入武原镇。
2008年8月,西塘桥镇盐东村、黄介玲村划归武原镇。
2010年11月,武原镇改武原街道。辖区总面积86平方千米
该演示展示了一个简单的使用部件库(jquery.ui.widget.js)创建的自定义的小部件。
三个区块是以不同的方式初始化的。点击改变他们的背景颜色。查看源码及注释理解工作原理。
<!doctype html><html lang="en"><head>
<meta charset="utf-8">
<title>jQuery UI 部件库(Widget Factory) - 默认功能</title>
<link rel="stylesheet" href="//code.jquery.com/ui/1.10.4/themes/smoothness/jquery-ui.css">
<script src="//code.jquery.com/jquery-1.9.1.js"></script>
<script src="//code.jquery.com/ui/1.10.4/jquery-ui.js"></script>
<link rel="stylesheet" href="http://jqueryui.com/resources/demos/style.css">
<style>
.custom-colorize {
font-size: 20px;
position: relative;
width: 75px;
height: 75px;
}
.custom-colorize-changer {
font-size: 10px;
position: absolute;
right: 0;
bottom: 0;
}
</style>
<script>
$(function() {
// 部件定义,其中 "custom" 是命名空间,"colorize" 是部件名称
$.widget( "custom.colorize", {
// 默认选项
options: {
red: 255,
green: 0,
blue: 0,
// 回调
change: null,
random: null
},
// 构造函数
_create: function() {
this.element // 添加一个主题化的 class
.addClass( "custom-colorize" )
// 防止双击来选择文本
.disableSelection();
this.changer = $( "<button>", {
text: "改变",
"class": "custom-colorize-changer"
})
.appendTo( this.element )
.button();
// 绑定 changer 按钮上的 click 事件到 random 方法
this._on( this.changer, {
// 当小部件被禁用时,_on 不会调用 random
click: "random"
});
this._refresh();
},
// 当创建及之后改变选项时调用
_refresh: function() {
this.element.css( "background-color", "rgb(" +
this.options.red +"," +
this.options.green + "," +
this.options.blue + ")"
);
// 触发一个回调/事件
this._trigger( "change" );
},
// 一个改变颜色为随机值的公共方法
// 可通过 .colorize( "random" ) 直接调用
random: function( event ) {
var colors = {
red: Math.floor( Math.random() * 256 ),
green: Math.floor( Math.random() * 256 ),
blue: Math.floor( Math.random() * 256 )
};