随笔分类 -  JavaScript

摘要:document.cookie="userTokenNew=ozqA-uO6O7A2T7HijDs7Y79oeRug3uGY; expires=18 Dec 2020 12:00:00 UTC"; 阅读全文
posted @ 2016-04-06 10:21 S大好人S 阅读(214) 评论(0) 推荐(0)
摘要:html <input type="text" name="match_id" class="form-control" id="inputName" value="" placeholder="比赛ID"> 获取该输入框中的内容 var match_id = $("input[name=match 阅读全文
posted @ 2016-03-02 10:36 S大好人S 阅读(340) 评论(0) 推荐(0)
摘要:匹配两个特定符号之间的数据匹配“大于”与“?”之间的数据:str = "第1局比赛30分钟双方总人头数是否会大于50.1?"begin = str.search('大于')end = str.search('\\?')alert(begin)alert(end)headCount = str.sli... 阅读全文
posted @ 2016-01-18 10:28 S大好人S 阅读(121) 评论(0) 推荐(0)