猫哥是一个常年混迹在 GitHub 上的猫星人,所以发现了不少好的前端开源项目,在此分享给大家。
Firebug2.0新功能还蛮多的,这里我只介绍吸引我的新功能。所有的新功能见 Firebug博客。
Cleave.js是一个帮助表单实现各种复杂实时格式化显示的工具库,可以说Cleave.js让表单的输入变得更加的高逼格,能实现很多复杂的表单格式化显示,简而言之就是针对<input/>标签按照诸如千分位、电话号码等风格的特定显示!
Visual Studio Code 的插件对于在提升编程效率和加快工作速度非常重要。这里有 30 个最受欢迎的 VSCode 插件,它们将使你成为更高效的搬砖摸鱼大师。这些插件主要适用于前端开发人员,但也有一些通用插件也可以适用于任何开发环境。以下是我将介绍的 VSCode 插件:
在Vue.js项目中,使用的是eslint检查。 而在我写完代码后,cnpm run dev运行命令。。。然后悲剧了,一大堆报错!╮(╯▽╰)╭ 安装插件:Vetur:这是vscode上一个vue.js代码提示,语法高亮等功能的流行插件。不过因为它代码格式化使用的是prettier,所以使用vscode右键自带的“格式化文件 Alt+shift+F”,会存在一些问题: 比如强制双引号(double quotes)、行尾自动加上分号(semicolon)等。 重点是:这些在eslint中报错!!!无语O__O
今天,了不起发现了一个非常有用的宝藏插件:Cleave.js。提供一个简单的方法来格式化您的输入数据,以此增加输入字段的可读性。让你的页面表单使用体验感爆棚~
写在前面:开发过程中,会遇到很多繁杂精细的麻烦问题,虽然知道要去按照步骤解决,但总归耗费大量的时间,那为什么不去寻求一个捷径,本文总结了一些在线工具,遇到问题,打开网页,想要的东西,分分钟就能解决,让开发变得高效,快速,有了这些工具在手,就可以从繁重的工作任务中解脱出来,有大把的时间去王者峡谷散步打野浪一圈了。 一:Atool在线工具: http://www.atool.org/ aTool,工具在线工具,由华中科技大学一位在校女研究生开发的在线工具集合网站,旨在做出最简单方便、最完整干净、最全面完整的工具
filter和map的组合使用可能很多人都会使用过,但是这样会进行两次遍历操作。可以使用reduce遍历一次完成同样的操作。
chrome的插件,集json串格式化、代码美化、代码压缩、二维码生成、页面取色等于一身,强烈推荐大家安装使用。
StringFormatter JS是一个js编写的可扩展的javascript字符串格式化库,它的功能远远超出了ECMA6标准所规定的字符串格式化规则。
为代码中的括号 {[()]} 添上一抹亮色,这样找对应括号时会简单很多,可以使代码阅读更加方便。
参考资料: https://www.cnblogs.com/zhn0823/p/6542335.html https://blog.csdn.net/shenxianhui1995/article/details/81604818 https://github.com/varHarrie/varharrie.github.io/issues/10
✅作者简介: 我是痴心阿文,你们的学友哥,今天写代码遇到些金额的问题,金额整数小数点后两位三位四位,vue金额格式化保留两位小数的实现方式。! 📃个人主页:痴心阿文的博客 🔥本文前言:【金额限制小数点】整数小数点后两位三位四位,vue金额格式化保留两位小数的实现方式。 💖如果觉得博主的文章有帮到你的话,请👍支持一下博主哦🤞 📷 🍉🍉🍉只能输入数字和小数点 value=value.replace(/[^0-9.]/g,'') 🍉🍉🍉只能输入数字
最终这样调用:new _0x4b1809(_0x2ba9)['OsLPar']();
Visual Studio Code 是由微软开发的一款免费、跨平台的文本编辑器。由于其卓越的性能和丰富的功能,它很快就受到了大家的喜爱。
特定场景下的数据格式化 使用biadutemplate边加载边渲染 在加载数据之后需要先格式化再渲染,格式化四种数据: 日期:需要格式化为yy-mm-dd、yy/mm/dd等 金额:整数部分从左到右每隔三位数加一个逗号,保留几位小数 整数:从左到右每隔三位数加一个逗号 其他:按返回格式输出 html: <script id="bdt_list" type="text/html"> <div class="box box-body table-r03
json格式化小工具,原生js编写,直接上代码: 1 <!DOCTYPE html> 2 <html lang="en"> 3 <head> 4 <meta charset="UTF-8"> 5 <title>原生js格式化json的方法</title> 6 <script> 7 //格式化代码函数,已经用原生方式写好了不需要改动,直接引用就好 8 var formatJson = function (json) { 9 var fo
1、uppercase,lowercase 大小写转换 {{ "lower cap string" | uppercase }} // 结果:LOWER CAP STRING {{ "TANK is GOOD" | lowercase }} // 结果:tank is good 2、date 格式化 {{1490161945000 | date:"yyyy-MM-dd HH:mm:ss"}} // 2017-03-22 13:52:25 3、number 格式化(保留小数) {{149016.1945000 | number:2}}//保留两位 {{149016.1945000 | number}}//默认为保留3位 4、currency货币格式化 {{ 250 | currency }} // 结果:$250.00 {{ 250 | currency:"RMB ¥ " }} // 结果:RMB ¥ 250.00 5、filter查找 输入过滤器可以通过一个管道字符(|)和一个过滤器添加到指令中,该过滤器后跟一个冒号和一个模型名称。 filter 过滤器从数组中选择一个子集 // 查找name为iphone的行 {{ [{"age": 20,"id": 10,"name": "iphone"}, {"age": 12,"id": 11,"name": "sunm xing"}, {"age": 44,"id": 12,"name": "test abc"} ] | filter:{'name':'iphone'} }} 同时filter可以自定义比较函数。 6、limitTo 截取 {{"1234567890" | limitTo :6}} // 从前面开始截取6位 {{"1234567890" | limitTo :6,6}} // 从第6位开始截取6位 {{"1234567890" | limitTo:-4}} // 从后面开始截取4位 7、orderBy 排序 // 根据id降序排 {{ [{"age": 20,"id": 10,"name": "iphone"}, {"age": 12,"id": 11,"name": "sunm xing"}, {"age": 44,"id": 12,"name": "test abc"} ] | orderBy:'id':true }}
本文总结了项目开发过程中常用的js函数和正则,意在提高大家平时的开发效率,具体内容如下:
在这里,我整理出一份个人最喜欢的 NPM 软件包清单。为了便于浏览,我还对它们进行了分类,希望呈现出更加清晰的结构。
在以前,我一直都是利用正则表达式进行手动插入千分位,比如,写了个这样的方法(注释比较详细):
3、autoresponder: 文件代理:可以使用fiddler来自定义请求返回的文件。
面对繁忙的日程安排与紧迫的工期限制,选择能够切实提升生产率的工具无疑至关重要。
很久都没有更新文章了,离日更的梦想越来越远,一来是工作比较忙,二来是近期身体素质较差,没有太多的精力放在钻研技术上,三来是公众号的建立和运营以及进入正式阶段,本着对技术的痴迷和不离不弃的初心,挤出来的时间,还是会总结近期自己所学的知识点,巩固落实才不至于很快的忘记。 今天发现了一个比较厉害的在线网站,简直可以称为程序员的工具箱。工具在手,事半功倍,工作无忧。 tool在线工具,开发人员工具,代码格式化、压缩、加密、解密,下载链接转换,sql工具,正则测试工具,favicon在线制作,ruby工具,中文简繁体
可以看到经过了2次请求,最后在http://datamining.comratings.com/exam3中得到数据,现在注意resquesr中的hearder传入的参数
持续创作,加速成长!这是我参与「掘金日新计划 · 6 月更文挑战」的第23天,点击查看活动详情
在日常开发中,特别是中后台管理页面,会经常使用到一些常用的函数比如:防抖节流、本地存储相关、时间格式化等,但是随着项目不断增加,复用性和通用性就成为一个很至关重要的问题,如何减少复制张贴的操作,那就是封装成为,适用与多项目统一的工具包,并用npm进行管理,“U盘式安装”的方式可以提高团队的效率,那今天就讲讲开发一个简易的工具库需要涉及哪些环节,看下图
JavaScript 对象在第六章中有所涉及。该章将每个对象视为一组独特的属性,与其他对象不同。然而,通常有必要定义一种共享某些属性的对象类。类的成员或实例具有自己的属性来保存或定义它们的状态,但它们还具有定义其行为的方法。这些方法由类定义,并由所有实例共享。例如,想象一个名为 Complex 的类,表示并对复数执行算术运算。Complex 实例将具有保存复数的实部和虚部(状态)的属性。Complex 类将定义执行这些数字的加法和乘法(行为)的方法。
我个人主要是做一些后端的工作,比如php、python、c之类的,c比较少,最主要的是php,不过我非常喜欢js,所以经常会愿意去写一些小玩意自娱自乐。
ESLint 是一个用来识别 ECMAScript/JavaScript 并且按照规则给出报告的代码检测工具,是一个用来检查代码的工具。
Visual Studio Code ( VS Code )是一个知名且评价很高的代码编辑器,具有大量功能和扩展以增强开发体验。使用 VS Code 的主要好处之一是它的灵活性,允许开发人员根据他们的特定需求对其进行自定义。
作为一名程序员,每天工作中都需要用到各种各样的工具,比如 JSON 格式化、正则表达式测试、二维码生成等等。这些工具虽然都很小,但是却非常实用。了不起觉得,如果能够把这些工具整合在一起,那就方便多了。
为啥要写这一篇文章呢? (主要是qq群内有人在模拟登陆知乎,一直不成功)然后我抓包看了下,发现知乎登陆页已经改版了,而且难度大大提高了。 开始抓包 首先内,还是打开知乎首页,然后输入账号密码,登陆(记
如果myProperty结果为false,则 && 失败并且不设置新属性; 否则,如果不为空,&& 将设置新属性并覆盖原来的值。
基于名称快速定位文件和文件夹。当你只记得文件名称关键字,而不知道文件在哪里的时候,可以发挥作用,快速搜索你需要的文件
昨天有小伙伴找我,新浪新闻的国内新闻页,其他部分都是静态网页可以抓到,但是在左下方的最新新闻部分,不是静态网页,也没有json数据,让我帮忙抓一下。大概看了下,是js加载的,而且数据在js函数中,很有意思,就分享出来给大家一起看看!
在业务逻辑比较多的系统里面,一般都会涉及到日期的处理。包括选择起始日期和结束日期,结束日期要大于起始日期,日期的显示和输入等。 输入这一块基本都是使用jQuery datetimepicker,后来系统使用Bootstrap,就开始使用bootstrap datetimepicker。不过功能都差不多。 1.日期录入控件 <html> <head> <meta charset="utf-8"/> <title>日期输入</title> <link re
大家好,又见面了,我是你们的朋友全栈君。 一、我们首先从经典的“四舍五入”算法讲起 1、四舍五入的情况 ?12 var num =2.446242342; num = num.toFixed(2)
使用python时会经常要对字符串做一些处理,比如:分割字符串、去掉空格、替换字符串
不知道使用 ios 设备的博友在浏览本站页面的时候有没有发现一个问题,所有页面评论模块都是不显示的!(记得大胡子哥有评论提醒过我移动端不能评论,还问我是不是故意这样设置的,其实这就是个bug)通过 MAC 审查可以发现控制台报错了,似乎是一个正则语法问题,但这个问题一直以来都没有得到解决,直到今天为止。
Java中的字符串可以转换为其他类型的数据。例如,我们可以使用parseInt()方法将一个字符串转换为整型数值。该方法接受一个字符串参数,并返回一个整型值。例如:
1.语言设置 Windows、Linux 快捷键是:ctrl+shift+p macOS 快捷键是:command + shift + p 搜索:Configore Display Language 修改"locale":"en"为"locale":"zh-CN" 然后安装中文插件,重启vscode 即可
Sublime Text:一款具有代码高亮、语法提示、自动完成且反应快速的编辑器软件,不仅具有华丽的界面,还支持插件扩展机制,用她来写代码,绝对是一种享受。相比于难于上手的Vim,浮肿沉重的Eclipse,VS,即便体积轻巧迅速启动的Editplus、Notepad++,在SublimeText面前大略显失色,无疑这款性感无比的编辑器是Coding和Writing最佳的选择,没有之一。 原文首链,请移步这里如何优雅地使用Sublime Text;最后更新于2015.12.15晚 (不能为简书文章添加目录?,
在日常开发工作和自己学习跑demo的时候,往往都需要快速构建一个springboot基础工程。除了用IDEA开发工具构建,更多就是用Spring Initializr来生成,但用的时间长了发现,它也就仅仅只能帮我们引入一些必要的jar包,其他插件轮子还是得自己配置。
前言 代码写的久了,就会发现很多时候都是在写一些重复的东西,这个时候就应该要考虑到提高工作效率了,比如对常用方法的封装,例如日期格式化,浏览器类型判断等。 今天这篇文章我们就来看看如何封装常用的Javascript方法,打造出属于自己的一套Javascript武器库吧。封装的代码为了不依赖于其他库,都采用原生的Javascript编写。 文中的代码有些比较长,理解的不是很清楚的,可以直接去github上看。 https://github.com/zhouxiongking/article-pages/blo
其实网上有很多富文本编辑器,诸如百度的ueditor,然后markdown编辑器github也有很多:
领取专属 10元无门槛券
手把手带您无忧上云