logo
  • 教程列表
  • SO官方文檔
  • 每個功能
    • jQuery 的每個功能
    • 基本用途
  1. StackOverflow 文件
  2. jQuery 教程
  3. 每個功能
  4. 基本用途

基本用途

Created: November-22, 2018

// array
var arr = [
   'one',
   'two',
   'three',
   'four'
];
$.each(arr, function (index, value) {
  console.log(value);
  
  // Will stop running after "three"
  return (value !== 'three');
});
// Outputs: one two three
  • jQuery 的每個功能

Copyright © 2018. All right reserved

tastones.com 备案号:鲁ICP备18045372号-1

  • 關於本站
  • 免責聲明