• XHTML 1.0 Reference


    Sort by functionNN: Indicates which earlier Netscape version supports this tagIE: Indicates which earlier versions of Internet Explorer support this tagDTD: Indicates what level of definition conforms to the XHTML 1.0 DTD. S=Strict, T=Transitional, and F=Frameset start tab Purpose NN IE DTD basic label<!DOCTYPE>? Defines the document type STF<html> html document (Defines a html document) […]

  • HTML table markup tutorial (11): align attribute horizontally


    In the horizontal direction, you can set the alignment of the table, including left, center, and right.Basic grammar <TABLE ALIGN=”LEFT”> <TABLE ALIGN=”CENTER”> <TABLE ALIGN=”RIGHT”> Grammatical interpretation Left is left, center is center, and right is right.Example of document: 10-11.htm Set the horizontal alignment of the table.01 <!– —————————— –>02 <!– File example: 10-11.htm — >03 […]

  • Table learning notes in Lua


    tablestayLuaLi is an important data structure. It can be said to be the basis of other data structures. The usual data structures such as arrays, records, linear tables, queues, and sets can be represented by tables, even global variables(_G)、modularThese important Lua elements, such as, metatable, are all table structures. It can be said that table […]

  • Lua learning notes C API traversal table implementation code


    Lua interacts with C through a virtual stack. The positive index values from bottom to top, and the negative index values from top to bottom. The table structure in Lua can use any data as a key to get values. There are two ways to access elements in a table using the C API:   […]

  • Lua’s method to judge whether a table is empty (an empty table is {})


    Judgment method and conclusion: Copy codeThe code is as follows: a={} if next(a) ~=nil then dosomething end   Lua is widely used in the project recently. Lua’s table is an important data structure in Lua and can be used as an array, vector and map in C + +. How to determine whether a table […]

  • Talk about the mapping relationship between PostgreSQL table and disk file


    Whether the drop table will free up disk space in PostgreSQL is witnessed by practical operation today –2019-01-11 09:49:21 will drop table release space create table tab_todrop(id int,cname varchar(50),remark text); insert into tab_todrop select generate_series(1,10000000),’wx good boy’,md5(‘wx good boy’); insert into tab_todrop select generate_series(1,10000000),’wx good boy’,md5(‘wx good boy’); –View table size qmstst=# select pg_size_pretty(pg_relation_size(‘tab_todrop’)); pg_size_pretty […]

  • Example of method for accessing functions in table in Lua


    See the example code: Copy codeThe code is as follows: do  table_ = {   a = 1,   foo = function(i)      return i     end  }    print(table_.foo(1)) end  

  • Four methods of traversing arrays and tables in Lua


    Method 1: you can use for to traverse: Copy codeThe code is as follows: do      table_week = {      “w”,      “e”,      “r”,      “t”,      “y”,      “u”,      “i”,      }        for i = 1, #table_week do          print(table_week[i])      end  end    #Followed by an array or tabe […]

  • Example of embedded table in table in Lua


    Not much nonsense. Look at the code: Copy codeThe code is as follows: local temp_insert_table_Data = {      x = “test3”,        y = “test4”,        z = “test5” ,  }    local temp_insert_table = {      x = 1,      y = 2,      z = 3,      {   a = -1, a1 = […]

  • Use example of concat method of lua table


    One part of the table function only affects its array part, while the other part affects the whole table It will be explained separately below   Copy codeThe code is as follows: table.concat(table, sep,  start, end) Concat is the abbreviation of concatenate table. The concat() function lists all elements of the array part of the […]

  • Method of obtaining table length in Lua


    The official documents describe #: Take the length operator and write a unary operation #. The length of a string is its number of bytes (that is, the length of a string calculated by one byte per character). The length of table t is defined as an integer subscript n. It satisfies that t [n] […]

  • Discussion on obtaining table length in Lua


    Another colleague made a mistake on the length of lua‘s table. Let’s have a look~~~ Look at the following code:   Copy codeThe code is as follows: local tblTest1 =  {      1,      2,      3  }    print(table.getn(tblTest1))  The output of this code is 3, which we all know, right. Whether the last […]