前端数据处理
猴子的时光机
这个作者很懒,什么都没留下…
展开
专栏收录文章
- 默认排序
- 最新发布
- 最早发布
- 最多阅读
- 最少阅读
-
根据气象预警等级颜色获取图片名称,返回对应图片url的方法
/** * 返回风险预警闪烁的图标地址 * @param type:预警类型,例如暴雨、大雾等 * @param level:预警级别,1;蓝色、2:黄色、3:橙色、4:红色 * @author */ GIS.Warning.warningIconUrlJudge11 = function (type,level) { var warningIconUrl = ""; if (type=='台风') {//01 switch (level) { .原创 2020-10-22 17:09:33 · 315 阅读 · 0 评论 -
No qualifying bean of type xxx xxx expected at least 1 bean which qualifies as autowire
No qualifying bean of type 'com.fwzx.service.RadarService' available: expected at least 1 bean which qualifies as autowire candidate. Dependency annotations: {@org.springframework.beans.factory.annotation.Autowired(required=true)} 报这样的错一般是因为自己的service没有注解原创 2020-06-24 09:34:12 · 573 阅读 · 0 评论 -
通过css来控制图标闪烁提醒
.animImage{ -webkit-animation-name:imageAnim; -webkit-animation-duration:0.5s; -webkit-animation-iteration-count:infinite; -webkit-animation-direction:alternate; -webkit-animation-timing-function:ease; -webkit-animation-play-state:running; } @-webk...原创 2020-06-03 18:05:54 · 1869 阅读 · 0 评论 -
$.each(resultJson, function (i, feature){ }); jquery遍历
$.each(resultJson, function (i, feature){ }) 里面的i代表当前循环到第几个索引, feature表示遍历后的当前对象, 比如resultJson数据为: [{"type":"a"},{"type":"b"},{"type":"c"}] 使用foreach遍历后, i,feature 依次为, 0,{"type":"a"} 1,{"type":"b"}...原创 2020-04-03 15:06:54 · 537 阅读 · 0 评论 -
重组json数据,将另外一个json数据里面的字段插入重组后的json数据中
就当在这里对自己的成长过程做个记录吧,虽然仍然很菜,要学习的仍然很多,但是我相信日积月累,行胜于言。 下面先把用到的json数据介绍一下。 resultJson 数据是需要重组的数据,里面没有站点的经纬度和站名信息,需要我将站名和经纬度添加到resultJson数据中。 var resultJson = [{ "actVal": 1022, "datetime": 158...原创 2020-04-03 15:57:11 · 660 阅读 · 0 评论
分享