随笔分类 - 1-前端遇见的问题
摘要:https://blog.csdn.net/zaynahly/article/details/75434874 JS跳转页面参考代码 第一种: <script language="javascript" type="text/javascript"> window.location.href="lo
阅读全文
摘要:md5 <script src="http://cdn.bootcss.com/blueimp-md5/1.1.0/js/md5.js"></script> <script src="http://cdn.bootcss.com/blueimp-md5/1.1.0/js/md5.min.js"></
阅读全文
摘要:效果实例图 实现思路 后台返回内容拼html,将所有内容展示出来查看,再点击是切换class属性进行样式控制展示格式, 切换样式代码实例 $(function () { $(".rizuka_info").on("click",".li_hui",function () { $(this).remo
阅读全文
摘要:第一部分 localStorage 对象存储的数据没有时间限制。第二天、第二周或下一年之后,数据依然可用。 实例 <script> //判断是否可以使用localStorageif(typeof(Storage)!=="undefined"){ localStorage.as="菜鸟教程";//as
阅读全文
摘要:实例1 等候三秒才执行的 alert( ) <script> setTimeout("alert('对不起, 要你久候')", 3000 )</script> 实例2 setTimeout( ) 通常是与 function 一起使用, 以下是一个较上个练习複杂的例子 setTimeout(funct
阅读全文
摘要:代码实例 function b() { //相对路径,跳出当前符号是(../),进入目录路径(html/a.html) window.location.href="../html/a.html" ; // 绝对路径(去掉WebRoot既可以了)/FFFFFFF/WebRoot/test1/html/
阅读全文
摘要:方法 function GetQueryString(name){ var reg = new RegExp("(^|&)"+ name +"=([^&]*)(&|$)"); var r = window.location.search.substr(1).match(reg); if(r!=nul
阅读全文
摘要:存储 <script type="text/javascript"> $("#czjltz").click(function(){ var box = $(".recharge-telnum__show").text(); document.cookie="box="+box+""; }); </s
阅读全文
摘要://小写字母自动转换大写字母 $("#carno_").bind("input propertychange", function() { var str=$("#carno_").val(); str=str.toUpperCase(); $("#carno_").val(str); });
阅读全文
浙公网安备 33010602011771号