• jquery生成二维码

    2020-06-23 笑清风 jquery

    最近,公司要做一个二维码扫码识别并浏览网页的功能,代码如下:首先,引用jquery库和jquery生成二维码库:<script src="https://cdn.bootcss.com/jquery/1.12.4/jquery.min.js"></script>     <script src="https://cdn.bootcss.com/jquery.qrcode/1....

    916 次 0 条

  • jquery给a标签加上href链接和jquery给a标签的父级li加上样式

    2020-06-08 笑清风 jquery

    jquery遍历a标签并给a标签加上href链接var pathname = window.location.pathname;$(".nav .left a").each(function(){  var aurl = $(this).attr('href');  if(pathname == aurl){    $(this).parents('li').addClass('on');...

    869 次 0 条