This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
      Learn more about bidirectional Unicode characters
    
  
  
    
  | class anotherArray[A: ClassTag] (dataType: A) //保存数组的数据类型,拥有以数组为单位分配写入空间的函数 | |
| class extractPackager[A : ClassTag](typeArray: List[A], PreAllocateSize: Int){ | |
| //typeArray: 上文提到的tup | |
| //PreAllocateSize: 数组元素最大值 | |
| //通过 | |
| val anotherArrayBuffer: ArrayBuffer[anotherArray[A]] = new ArrayBuffer[anotherArray[A]] | |
| //数组写入单元的数组 | 
  
    
      This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
      Learn more about bidirectional Unicode characters
    
  
  
    
  | /* | |
| Theme Name: Child Theme | |
| Description: Subtheme example | |
| Author: Mr.Twister | |
| Template: (需要修改的主題名稱) | |
| Version: 1.0.0 | |
| Text Domain: child-theme(子主題的ID) | |
| */ | 
  
    
      This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
      Learn more about bidirectional Unicode characters
    
  
  
    
  | <?php | |
| function child_theme_enqueue_styles() { | |
| $parent_style = 'allegiant'; | |
| wp_enqueue_style( $parent_style, get_template_directory_uri() . '/style.css' ); | |
| wp_enqueue_style('child-theme', | |
| get_stylesheet_directory_uri() . '/style.css', | |
| array($parent_style), | |
| wp_get_theme()->get('Version') | |
| ); | |
| } | 
  
    
      This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
      Learn more about bidirectional Unicode characters
    
  
  
    
  | var minRegex = /([0-9]+)分钟前/; | |
| var hourRegex = /([0-9]+)小时前/; | |
| var dateRegex = /([0-9]{2})月([0-9]{2})日/; | |
| var yestdayRegex = /昨天/; | |
| var beforeRegex = /([0-9])天前/; | |
| var fullDateRegex = /([0-9]{4})年([0-9]{2})月([0-9]{2})日/; | |
| if(postDate.match(minRegex)){ | |
| var nowTime = Date.now(); | |
| postDate = minRegex.exec(postDate)[1]; | 
  
    
      This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
      Learn more about bidirectional Unicode characters
    
  
  
    
  | //當用戶點擊id為text的文字後 | |
| $('#text').click(function() { | |
| //先讓程式取得原本文字的內容 | |
| var text = document.getElementById("text").innerHTML; | |
| //再將該文字替換成return裡的內容(例如input) | |
| $('#text').replaceWith(function() { | |
| return '<input type="text" name="text" value="' + text + ' "<br>'; | |
| }); | 
  
    
      This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
      Learn more about bidirectional Unicode characters
    
  
  
    
  | var params = { | |
| TableName: "username", | |
| Key: { | |
| "username":{"S":"sardo"} | |
| } | |
| } | |
| dyDB.deleteItem(params, function(err, result) { | |
| if(err){ | 
  
    
      This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
      Learn more about bidirectional Unicode characters
    
  
  
    
  | var params = { | |
| TableName: "username" | |
| } | |
| dyDB.deleteTable(params, function(err, result) { | |
| if(err){ | |
| console.log(err); | |
| return; | |
| } | 
  
    
      This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
      Learn more about bidirectional Unicode characters
    
  
  
    
  | var params = { | |
| TableName: "users", | |
| AttributeDefinitions: [{ | |
| AttributeName: 'username', | |
| AttributeType: 'S' | |
| }], | |
| KeySchema: [{ | |
| AttributeName: 'username', | 
  
    
      This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
      Learn more about bidirectional Unicode characters
    
  
  
    
  | dyDB.scan({ | |
| "TableName": "users" | |
| }, function(err, result) { | |
| if (err) { | |
| console.log(err); | |
| return; | |
| } | |
| console.log(result); | 
  
    
      This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
      Learn more about bidirectional Unicode characters
    
  
  
    
  | var params = { | |
| AttributesToGet: ["password"], | |
| TableName: "users", | |
| Key: { | |
| "username":{ | |
| "S": username | |
| } | |
| } | |
| } | 
NewerOlder