search
HomeWeb Front-endJS TutorialRelated tricks in JavaScript

Related tricks in JavaScript

Jun 05, 2018 pm 03:58 PM
js代码片段

这篇文章主要介绍了JavaScript 有用的代码片段和 trick的相关知识,非常不错,具有参考借鉴价值,需要的朋友可以参考下

浮点数取整

const x = 123.4545;
x >> 0; // 123
~~x; // 123
x | 0; // 123
Math.floor(x); // 123

注意:前三种方法只适用于32个位整数,对于负数的处理上和 Math.floor是不同的。

Math.floor(-12.53); // -13
-12.53 | 0; // -12

生成6位数字验证码

// 方法一
('000000' + Math.floor(Math.random() * 999999)).slice(-6);
// 方法二
Math.random().toString().slice(-6);
// 方法三
Math.random().toFixed(6).slice(-6);
// 方法四
'' + Math.floor(Math.random() * 999999);

16进制颜色代码生成

(function() {
 return '#'+('00000'+
 (Math.random()*0x1000000<<0).toString(16)).slice(-6);
})();

驼峰命名转下划线

&#39;componentMapModelRegistry&#39;.match(/^[a-z][a-z0-9]+|[A-Z][a-z0-9]*/g).join(&#39;_&#39;).toLowerCase(); // component_map_model_registry

url查询参数转json格式

// ES6
const query = (search = &#39;&#39;) => ((querystring = &#39;&#39;) => (q => (querystring.split(&#39;&&#39;).forEach(item => (kv => kv[0] && (q[kv[0]] = kv[1]))(item.split(&#39;=&#39;))), q))({}))(search.split(&#39;?&#39;)[1]);

// 对应ES5实现
var query = function(search) {
 if (search === void 0) { search = &#39;&#39;; }
 return (function(querystring) {
 if (querystring === void 0) { querystring = &#39;&#39;; }
 return (function(q) {
  return (querystring.split(&#39;&&#39;).forEach(function(item) {
  return (function(kv) {
   return kv[0] && (q[kv[0]] = kv[1]);
  })(item.split(&#39;=&#39;));
  }), q);
 })({});
 })(search.split(&#39;?&#39;)[1]);
};
query(&#39;?key1=value1&key2=value2&#39;); // es6.html:14 {key1: "value1", key2: "value2"}

获取URL参数

function getQueryString(key){
 var reg = new RegExp("(^|&)"+ key +"=([^&]*)(&|$)");
 var r = window.location.search.substr(1).match(reg);
 if(r!=null){
  return unescape(r[2]);
 }
 return null;
}

n维数组展开成一维数组

var foo = [1, [2, 3], [&#39;4&#39;, 5, [&#39;6&#39;,7,[8]]], [9], 10];
// 方法一
// 限制:数组项不能出现`,`,同时数组项全部变成了字符数字
foo.toString().split(&#39;,&#39;); // ["1", "2", "3", "4", "5", "6", "7", "8", "9", "10"]
// 方法二
// 转换后数组项全部变成数字了
eval(&#39;[&#39; + foo + &#39;]&#39;); // [1, 2, 3, 4, 5, 6, 7, 8, 9, 10]
// 方法三,使用ES6展开操作符
// 写法太过麻烦,太过死板
[1, ...[2, 3], ...[&#39;4&#39;, 5, ...[&#39;6&#39;,7,...[8]]], ...[9], 10]; // [1, 2, 3, "4", 5, "6", 7, 8, 9, 10]
// 方法四
JSON.parse(`[${JSON.stringify(foo).replace(/\[|]/g, &#39;&#39;)}]`); // [1, 2, 3, "4", 5, "6", 7, 8, 9, 10]
// 方法五
const flatten = (ary) => ary.reduce((a, b) => a.concat(Array.isArray(b) ? flatten(b) : b), []);
flatten(foo); // [1, 2, 3, "4", 5, "6", 7, 8, 9, 10]
// 方法六
function flatten(a) {
 return Array.isArray(a) ? [].concat(...a.map(flatten)) : a;

注:更多方法请参考《How to flatten nested array in JavaScript?》

日期格式化

// 方法一
function format1(x, y) {
 var z = {
 y: x.getFullYear(),
 M: x.getMonth() + 1,
 d: x.getDate(),
 h: x.getHours(),
 m: x.getMinutes(),
 s: x.getSeconds()
 };
 return y.replace(/(y+|M+|d+|h+|m+|s+)/g, function(v) {
 return ((v.length > 1 ? "0" : "") + eval(&#39;z.&#39; + v.slice(-1))).slice(-(v.length > 2 ? v.length : 2))
 });
}

format1(new Date(), &#39;yy-M-d h:m:s&#39;); // 17-10-14 22:14:41

// 方法二
Date.prototype.format = function (fmt) { 
 var o = {
 "M+": this.getMonth() + 1, //月份 
 "d+": this.getDate(), //日 
 "h+": this.getHours(), //小时 
 "m+": this.getMinutes(), //分 
 "s+": this.getSeconds(), //秒 
 "q+": Math.floor((this.getMonth() + 3) / 3), //季度 
 "S": this.getMilliseconds() //毫秒 
 };
 if (/(y+)/.test(fmt)){
 fmt = fmt.replace(RegExp.$1, (this.getFullYear() + "").substr(4 - RegExp.$1.length));
 } 
 for (var k in o){
 if (new RegExp("(" + k + ")").test(fmt)){
  fmt = fmt.replace(RegExp.$1, (RegExp.$1.length == 1) ? (o[k]) : (("00" + o[k]).substr(("" + o[k]).length)));
 }
 }  
 return fmt;
}
new Date().format(&#39;yy-M-d h:m:s&#39;); // 17-10-14 22:18:17

特殊字符转义

function htmlspecialchars (str) {
 var str = str.toString().replace(/&/g, "&").replace(/</g, "<").replace(/>/g, ">").replace(/"/g, &#39;"&#39;);
 return str;
}
htmlspecialchars(&#39;&jfkds<>&#39;); // "&jfkds<>"

动态插入js

function injectScript(src) {
 var s, t;
 s = document.createElement(&#39;script&#39;);
 s.type = &#39;text/javascript&#39;;
 s.async = true;
 s.src = src;
 t = document.getElementsByTagName(&#39;script&#39;)[0];
 t.parentNode.insertBefore(s, t);
}

格式化数量

// 方法一
function formatNum (num, n) {
 if (typeof num == "number") {
 num = String(num.toFixed(n || 0));
 var re = /(-?\d+)(\d{3})/;
 while (re.test(num)) num = num.replace(re, "$1,$2");
 return num;
 }
 return num;
}
formatNum(2313123, 3); // "2,313,123.000"
// 方法二
&#39;2313123&#39;.replace(/\B(?=(\d{3})+(?!\d))/g, &#39;,&#39;); // "2,313,123"
// 方法三
function formatNum(str) {
 return str.split(&#39;&#39;).reverse().reduce((prev, next, index) => {
 return ((index % 3) ? next : (next + &#39;,&#39;)) + prev
 });
}
formatNum(&#39;2313323&#39;); // "2,313,323"

身份证验证

function chechCHNCardId(sNo) {
 if (!this.regExpTest(sNo, /^[0-9]{17}[X0-9]$/)) {
 return false;
 }
 sNo = sNo.toString();

 var a, b, c;
 a = parseInt(sNo.substr(0, 1)) * 7 + parseInt(sNo.substr(1, 1)) * 9 + parseInt(sNo.substr(2, 1)) * 10;
 a = a + parseInt(sNo.substr(3, 1)) * 5 + parseInt(sNo.substr(4, 1)) * 8 + parseInt(sNo.substr(5, 1)) * 4;
 a = a + parseInt(sNo.substr(6, 1)) * 2 + parseInt(sNo.substr(7, 1)) * 1 + parseInt(sNo.substr(8, 1)) * 6;
 a = a + parseInt(sNo.substr(9, 1)) * 3 + parseInt(sNo.substr(10, 1)) * 7 + parseInt(sNo.substr(11, 1)) * 9;
 a = a + parseInt(sNo.substr(12, 1)) * 10 + parseInt(sNo.substr(13, 1)) * 5 + parseInt(sNo.substr(14, 1)) * 8;
 a = a + parseInt(sNo.substr(15, 1)) * 4 + parseInt(sNo.substr(16, 1)) * 2;
 b = a % 11;

 if (b == 2) {
 c = sNo.substr(17, 1).toUpperCase();
 } else {
 c = parseInt(sNo.substr(17, 1));
 }

 switch (b) {
 case 0:
  if (c != 1) {
  return false;
  }
  break;
 case 1:
  if (c != 0) {
  return false;
  }
  break;
 case 2:
  if (c != "X") {
  return false;
  }
  break;
 case 3:
  if (c != 9) {
  return false;
  }
  break;
 case 4:
  if (c != 8) {
  return false;
  }
  break;
 case 5:
  if (c != 7) {
  return false;
  }
  break;
 case 6:
  if (c != 6) {
  return false;
  }
  break;
 case 7:
  if (c != 5) {
  return false;
  }
  break;
 case 8:
  if (c != 4) {
  return false;
  }
  break;
 case 9:
  if (c != 3) {
  return false;
  }
  break;
 case 10:
  if (c != 2) {
  return false;
  };
 }
 return true;
}

测试质数

function isPrime(n) {
 return !(/^.?$|^(..+?)\1+$/).test(&#39;1&#39;.repeat(n))
}

统计字符串中相同字符出现的次数

var arr = &#39;abcdaabc&#39;;
var info = arr
 .split(&#39;&#39;)
 .reduce((p, k) => (p[k]++ || (p[k] = 1), p), {});
console.log(info); //{ a: 3, b: 2, c: 2, d: 1 }

使用 void0来解决 undefined被污染问题

undefined = 1;
!!undefined; // true
!!void(0); // false

单行写一个评级组件

"★★★★★☆☆☆☆☆".slice(5 - rate, 10 - rate);

JavaScript 错误处理的方式的正确姿势

try {
  something
} catch (e) {
  window.location.href =
    "http://stackoverflow.com/search?q=[js]+" +
    e.message;
}

匿名函数自执行写法

( function() {}() );
( function() {} )();
[ function() {}() ];
~ function() {}();
! function() {}();
+ function() {}();
- function() {}();
delete function() {}();
typeof function() {}();
void function() {}();
new function() {}();
new function() {};
var f = function() {}();
1, function() {}();
1 ^ function() {}();
1 > function() {}();

两个整数交换数值

var a = 20, b = 30;
a ^= b;
b ^= a;
a ^= b;
a; // 30
b; // 20

数字字符转数字

var a = &#39;1&#39;;
+a; // 1

最短的代码实现数组去重

[...new Set([1, "1", 2, 1, 1, 3])]; // [1, "1", 2, 3]

用最短的代码实现一个长度为m(6)且值都n(8)的数组

Array(6).fill(8); // [8, 8, 8, 8, 8, 8]

将argruments对象转换成数组

var argArray = Array.prototype.slice.call(arguments);

// ES6:
var argArray = Array.from(arguments)

// or
var argArray = [...arguments];

获取日期时间缀

// 获取指定时间的时间缀
new Date().getTime();
(new Date()).getTime();
(new Date).getTime();
// 获取当前的时间缀
Date.now();
// 日期显示转换为数字
+new Date();

使用 ~x.indexOf('y')来简化 x.indexOf('y')>-1

var str = &#39;hello world&#39;;
if (str.indexOf(&#39;lo&#39;) > -1) {
 // ...
}
if (~str.indexOf(&#39;lo&#39;)) {
 // ...
}

两者的差别之处在于解析和转换两者之间的理解。

解析允许字符串中含有非数字字符,解析按从左到右的顺序,如果遇到非数字字符就停止。而转换不允许出现非数字字符,否者会失败并返回NaN。

var a = &#39;520&#39;;
var b = &#39;520px&#39;;
Number(a); // 520
parseInt(a); // 520
Number(b); // NaN
parseInt(b); // 520

parseInt方法第二个参数用于指定转换的基数,ES5默认为10进制。

parseInt(&#39;10&#39;, 2); // 2
parseInt(&#39;10&#39;, 8); // 8
parseInt(&#39;10&#39;, 10); // 10
parseInt(&#39;10&#39;, 16); // 16

对于网上 parseInt(0.0000008)的结果为什么为8,原因在于0.0000008转换成字符为"8e-7",然后根据 parseInt的解析规则自然得到"8"这个结果。

+ 拼接操作,+x or String(x)?

+运算符可用于数字加法,同时也可以用于字符串拼接。如果+的其中一个操作符是字符串(或者通过 隐式强制转换可以得到字符串),则执行字符串拼接;否者执行数字加法。

需要注意的时对于数组而言,不能通过 valueOf()方法得到简单基本类型值,于是转而调用 toString()方法。

[1,2] + [3, 4]; // "1,23,4"

对于对象同样会先调用 valueOf()方法,然后通过 toString()方法返回对象的字符串表示。

var a = {};
a + 123; // "[object Object]123"

对于 a+""隐式转换和 String(a)显示转换有一个细微的差别: a+''会对a调用 valueOf()方法,而 String()直接调用 toString()方法。大多数情况下我们不会考虑这个问题,除非真遇到。

var a = {
 valueOf: function() { return 42; },
 toString: function() { return 4; }
}
a + &#39;&#39;; // 42
String(a); // 4

判断对象的实例

// 方法一: ES3
function Person(name, age) {
 if (!(this instanceof Person)) {
  return new Person(name, age);
 }
 this.name = name;
 this.age = age;
}
// 方法二: ES5
function Person(name, age) {
 var self = this instanceof Person ? this : Object.create(Person.prototype);
 self.name = name;
 self.age = age;
 return self;
}
// 方法三:ES6
function Person(name, age) {
 if (!new.target) {
  throw &#39;Peron must called with new&#39;;
 }
 this.name = name;
 this.age = age;
}

数据安全类型检查

// 对象
function isObject(value) {
 return Object.prototype.toString.call(value).slice(8, -1) === &#39;Object&#39;&#39;;
}
// 数组
function isArray(value) {
 return Object.prototype.toString.call(value).slice(8, -1) === &#39;Array&#39;;
}
// 函数
function isFunction(value) {
 return Object.prototype.toString.call(value).slice(8, -1) === &#39;Function&#39;;
}

让数字的字面值看起来像对象

toString(); // Uncaught SyntaxError: Invalid or unexpected token
..toString(); // 第二个点号可以正常解析
 .toString(); // 注意点号前面的空格
(2).toString(); // 2先被计算

对象可计算属性名(仅在ES6中)

var suffix = &#39; name&#39;;
var person = {
 [&#39;first&#39; + suffix]: &#39;Nicholas&#39;,
 [&#39;last&#39; + suffix]: &#39;Zakas&#39;
}
person[&#39;first name&#39;]; // "Nicholas"
person[&#39;last name&#39;]; // "Zakas"

数字四舍五入

// v: 值,p: 精度
function (v, p) {
 p = Math.pow(10, p >>> 31 ? 0 : p | 0)
 v *= p;
 return (v + 0.5 + (v >> 31) | 0) / p
}
round(123.45353, 2); // 123.45

在浏览器中根据url下载文件

function download(url) {
 var isChrome = navigator.userAgent.toLowerCase().indexOf(&#39;chrome&#39;) > -1;
 var isSafari = navigator.userAgent.toLowerCase().indexOf(&#39;safari&#39;) > -1;
 if (isChrome || isSafari) {
  var link = document.createElement(&#39;a&#39;);
  link.href = url;
  if (link.download !== undefined) {
   var fileName = url.substring(url.lastIndexOf(&#39;/&#39;) + 1, url.length);
   link.download = fileName;
  }
  if (document.createEvent) {
   var e = document.createEvent(&#39;MouseEvents&#39;);
   e.initEvent(&#39;click&#39;, true, true);
   link.dispatchEvent(e);
   return true;
  }
 }
 if (url.indexOf(&#39;?&#39;) === -1) {
  url += &#39;?download&#39;;
 }
 window.open(url, &#39;_self&#39;);
 return true;
}

快速生成UUID

function uuid() {
 var d = new Date().getTime();
 var uuid = &#39;xxxxxxxxxxxx-4xxx-yxxx-xxxxxxxxxxxx&#39;.replace(/[xy]/g, function(c) {
  var r = (d + Math.random() * 16) % 16 | 0;
  d = Math.floor(d / 16);
  return (c == &#39;x&#39; ? r : (r & 0x3 | 0x8)).toString(16);
 });
 return uuid;
};
uuid(); // "33f7f26656cb-499b-b73e-89a921a59ba6"

JavaScript浮点数精度问题

function isEqual(n1, n2, epsilon) {
 epsilon = epsilon == undefined ? 10 : epsilon; // 默认精度为10
 return n1.toFixed(epsilon) === n2.toFixed(epsilon);
}
0.1 + 0.2; // 0.30000000000000004
isEqual(0.1 + 0.2, 0.3); // true
0.7 + 0.1 + 99.1 + 0.1; // 99.99999999999999
isEqual(0.7 + 0.1 + 99.1 + 0.1, 100); // true

格式化表单数据

function formatParam(obj) {
 var query = &#39;&#39;, name, value, fullSubName, subName, subValue, innerObj, i;
 for(name in obj) {
  value = obj[name];
  if(value instanceof Array) {
   for(i=0; i<value.length; ++i) {
    subValue = value[i];
    fullSubName = name + &#39;[&#39; + i + &#39;]&#39;;
    innerObj = {};
    innerObj[fullSubName] = subValue;
    query += formatParam(innerObj) + &#39;&&#39;;
   }
  }
  else if(value instanceof Object) {
   for(subName in value) {
    subValue = value[subName];
    fullSubName = name + &#39;[&#39; + subName + &#39;]&#39;;
    innerObj = {};
    innerObj[fullSubName] = subValue;
    query += formatParam(innerObj) + &#39;&&#39;;
   }
  }
  else if(value !== undefined && value !== null)
   query += encodeURIComponent(name) + &#39;=&#39; + encodeURIComponent(value) + &#39;&&#39;;
 }
 return query.length ? query.substr(0, query.length - 1) : query;
}
var param = {
 name: &#39;jenemy&#39;,
 likes: [0, 1, 3],
 memberCard: [
  { title: &#39;1&#39;, id: 1 },
  { title: &#39;2&#39;, id: 2 }
 ]
}
formatParam(param); // "name=12&likes%5B0%5D=0&likes%5B1%5D=1&likes%5B2%5D=3&memberCard%5B0%5D%5Btitle%5D=1&memberCard%5B0%5D%5Bid%5D=1&memberCard%5B1%5D%5Btitle%5D=2&memberCard%5B1%5D%5Bid%5D=2"

创建指定长度非空数组

在JavaScript中可以通过new Array(3)的形式创建一个长度为3的空数组。在老的Chrome中其值为[undefined x 3],在最新的Chrome中为[empty x 3],即空单元数组。在老Chrome中,相当于显示使用[undefined, undefined, undefined]的方式创建长度为3的数组。

但是,两者在调用map()方法的结果是明显不同的

var a = new Array(3);
var b = [undefined, undefined, undefined];
a.map((v, i) => i); // [empty × 3]
b.map((v, i) => i); // [0, 1, 2]

多数情况我们期望创建的是包含undefined值的指定长度的空数组,可以通过下面这种方法来达到目的:

var a = Array.apply(null, { length: 3 });
a; // [undefined, undefined, undefined]
a.map((v, i) => i); // [0, 1, 2]

上面是我整理给大家的,希望今后会对大家有帮助。

相关文章:

如何关闭Vue计算属性自带的缓存功能,具体步骤有哪些?

如何解决vue 更改计算属性后select选中值不更改的问题,具体操作如下

如何解决iview 的select下拉框选项错位的问题,具体操作如下

The above is the detailed content of Related tricks in JavaScript. For more information, please follow other related articles on the PHP Chinese website!

Statement
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn
Understanding the JavaScript Engine: Implementation DetailsUnderstanding the JavaScript Engine: Implementation DetailsApr 17, 2025 am 12:05 AM

Understanding how JavaScript engine works internally is important to developers because it helps write more efficient code and understand performance bottlenecks and optimization strategies. 1) The engine's workflow includes three stages: parsing, compiling and execution; 2) During the execution process, the engine will perform dynamic optimization, such as inline cache and hidden classes; 3) Best practices include avoiding global variables, optimizing loops, using const and lets, and avoiding excessive use of closures.

Python vs. JavaScript: The Learning Curve and Ease of UsePython vs. JavaScript: The Learning Curve and Ease of UseApr 16, 2025 am 12:12 AM

Python is more suitable for beginners, with a smooth learning curve and concise syntax; JavaScript is suitable for front-end development, with a steep learning curve and flexible syntax. 1. Python syntax is intuitive and suitable for data science and back-end development. 2. JavaScript is flexible and widely used in front-end and server-side programming.

Python vs. JavaScript: Community, Libraries, and ResourcesPython vs. JavaScript: Community, Libraries, and ResourcesApr 15, 2025 am 12:16 AM

Python and JavaScript have their own advantages and disadvantages in terms of community, libraries and resources. 1) The Python community is friendly and suitable for beginners, but the front-end development resources are not as rich as JavaScript. 2) Python is powerful in data science and machine learning libraries, while JavaScript is better in front-end development libraries and frameworks. 3) Both have rich learning resources, but Python is suitable for starting with official documents, while JavaScript is better with MDNWebDocs. The choice should be based on project needs and personal interests.

From C/C   to JavaScript: How It All WorksFrom C/C to JavaScript: How It All WorksApr 14, 2025 am 12:05 AM

The shift from C/C to JavaScript requires adapting to dynamic typing, garbage collection and asynchronous programming. 1) C/C is a statically typed language that requires manual memory management, while JavaScript is dynamically typed and garbage collection is automatically processed. 2) C/C needs to be compiled into machine code, while JavaScript is an interpreted language. 3) JavaScript introduces concepts such as closures, prototype chains and Promise, which enhances flexibility and asynchronous programming capabilities.

JavaScript Engines: Comparing ImplementationsJavaScript Engines: Comparing ImplementationsApr 13, 2025 am 12:05 AM

Different JavaScript engines have different effects when parsing and executing JavaScript code, because the implementation principles and optimization strategies of each engine differ. 1. Lexical analysis: convert source code into lexical unit. 2. Grammar analysis: Generate an abstract syntax tree. 3. Optimization and compilation: Generate machine code through the JIT compiler. 4. Execute: Run the machine code. V8 engine optimizes through instant compilation and hidden class, SpiderMonkey uses a type inference system, resulting in different performance performance on the same code.

Beyond the Browser: JavaScript in the Real WorldBeyond the Browser: JavaScript in the Real WorldApr 12, 2025 am 12:06 AM

JavaScript's applications in the real world include server-side programming, mobile application development and Internet of Things control: 1. Server-side programming is realized through Node.js, suitable for high concurrent request processing. 2. Mobile application development is carried out through ReactNative and supports cross-platform deployment. 3. Used for IoT device control through Johnny-Five library, suitable for hardware interaction.

Building a Multi-Tenant SaaS Application with Next.js (Backend Integration)Building a Multi-Tenant SaaS Application with Next.js (Backend Integration)Apr 11, 2025 am 08:23 AM

I built a functional multi-tenant SaaS application (an EdTech app) with your everyday tech tool and you can do the same. First, what’s a multi-tenant SaaS application? Multi-tenant SaaS applications let you serve multiple customers from a sing

How to Build a Multi-Tenant SaaS Application with Next.js (Frontend Integration)How to Build a Multi-Tenant SaaS Application with Next.js (Frontend Integration)Apr 11, 2025 am 08:22 AM

This article demonstrates frontend integration with a backend secured by Permit, building a functional EdTech SaaS application using Next.js. The frontend fetches user permissions to control UI visibility and ensures API requests adhere to role-base

See all articles

Hot AI Tools

Undresser.AI Undress

Undresser.AI Undress

AI-powered app for creating realistic nude photos

AI Clothes Remover

AI Clothes Remover

Online AI tool for removing clothes from photos.

Undress AI Tool

Undress AI Tool

Undress images for free

Clothoff.io

Clothoff.io

AI clothes remover

AI Hentai Generator

AI Hentai Generator

Generate AI Hentai for free.

Hot Article

R.E.P.O. Energy Crystals Explained and What They Do (Yellow Crystal)
1 months agoBy尊渡假赌尊渡假赌尊渡假赌
R.E.P.O. Best Graphic Settings
1 months agoBy尊渡假赌尊渡假赌尊渡假赌
R.E.P.O. How to Fix Audio if You Can't Hear Anyone
1 months agoBy尊渡假赌尊渡假赌尊渡假赌
R.E.P.O. Chat Commands and How to Use Them
1 months agoBy尊渡假赌尊渡假赌尊渡假赌

Hot Tools

EditPlus Chinese cracked version

EditPlus Chinese cracked version

Small size, syntax highlighting, does not support code prompt function

WebStorm Mac version

WebStorm Mac version

Useful JavaScript development tools

Safe Exam Browser

Safe Exam Browser

Safe Exam Browser is a secure browser environment for taking online exams securely. This software turns any computer into a secure workstation. It controls access to any utility and prevents students from using unauthorized resources.

SublimeText3 English version

SublimeText3 English version

Recommended: Win version, supports code prompts!

Zend Studio 13.0.1

Zend Studio 13.0.1

Powerful PHP integrated development environment