2017-03-02 总结

CSS权威指南:

<link> 的media属性-----all | screen | print

**@import指令: **用于<style type="text/css"></style>块中,必须出现在其他任何自定义规则之前,否则会被忽略。(类似link的用法)

正确的用法:

<style type="text/css">
      @import url(example.css)
      h1{color:red}
 </style>

规则结构:

/*h1代表选择器;整个{}代表声明块;color:red代表声明*/
h1 {color:red;backgroud:yellow;}

类选择器:
p.waring{font-weight:bold;}
匹配class="waring"的所有p元素

多类选择器:
一个class值中有可能包含多个词列表,各个值用空格分割。这些词的顺序无关紧要


如果 class="waring urgent" 而 CSS选择器里这样写:
.waring.urgent{background:silver;},那么就会有一个银色背景

JavaScript权威指南

JQuery章节

1、其实我们常用的$()是全局函数JQuery()的简写;JQuery()返回的是一个JQuery对象。
2、还有一种经常见到的用法--$(document)或者$(this)。$()方法可以将document、Windows、this等对象简单封装一下,返回JQuery对象。
3、经常看到的$.each()其实就是JQuery().each()的简写,each()方法是JQuery对象的静态方法。其他静态方法:map() is()
4、JQuery()对象是类数组,有length、selector、context、jquery属性
5、常用方法:attr()、removeAttr()、css()、addClass() removeClass() hasClass() toggleClass()、val()、text()、 html()、offset() position()、width() height() 、scrollTop() scrollLeft()、append()、 appendTo()、 empty()、 remove()

项目

弹出legend窗口的过程如下:
1、Evaluation-Indicator单选事件
2、 onClick触发gridMrIndicatorRadioClick() (在evaluationMenu.js中)
3、gridMrIndicatorRadioClick()内部调用processEvaluationLayerGridMr(tempId)
4、上面的方法又调用legendController.js中的showlegend("GRIDMR"+tempId,"legend-traffic",sgworld)

legend.html内部执行过程:
1、获取全局对象legendGlobalValue
2、showBusinessLegend(legendType,legendContext,legendContextEx);
3、内部调用show(self["legend-config_"+legendType],legendType)

skyline的popup对象的Flagss属性可设置 NO_CAPTION NO_BORDER等属性

评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值