JavaScript
文章平均质量分 58
侠歌
前端乱炖
展开
-
基于jQuery的简单web选项卡
<br /><div class="a" id="flags_1">日志</div> <div class="a" id="flags_2">相册</div> <div class="boxx" id="flags_1_1"> <ul> <li>日志<li> </ul> </div> <div class="boxx" id="flags_2_1"> <ul> <li>相册</li> </ul> </div> <br /> <br />var flag ="#flag_1,#flag原创 2010-06-18 15:30:00 · 292 阅读 · 0 评论 -
js字符串函数大全
JS自带函数 concat 将两个或多个字符的文本组合起来,返回一个新的字符串。 var a = "hello"; var b = ",world"; var c = a.concat(b); alert(c); //c = "hello,world" indexOf 返回字符串中一个子串第一处出现的索引(从左到右搜索)。如果没有匹配项,返回 -1 。 var index1 =转载 2016-12-06 21:35:09 · 399 阅读 · 0 评论 -
angularJs设置全局变量的N种方法
var myApp = angular.module('myApp', []); myApp.value('public',{ "Localapi":"/v1/getInfo/", "Versions":"V2.2.3" }); myApp.constant('option', function(){ return { getUrlParam:functio原创 2016-12-14 11:32:49 · 5423 阅读 · 0 评论 -
Vue生命周期
vue生命周期 {{a}} 我是内容二 var myVue = new Vue({ el: ".test", data原创 2017-05-07 10:29:21 · 314 阅读 · 0 评论