• Ubuntu install sublime-text3


    I often use sublime in my work. The current version is a little low and looks ugly, so I simply upgrade it and record the steps: 1. Uninstall the old version sudo apt remove sublime-text 2. Install the new version wget -qO – https://download.sublimetext.com/sublimehq-pub.gpg | sudo apt-key add – echo “deb https://download.sublimetext.com/ apt/stable/” | sudo […]

  • Method to obtain the object object property, Reflect.ownKeys , Object.getOwnPropertyNames , Object.getOwnPropertySymbols , Object.keys ,for in


    let triangle={ a:1, b:2, c:3 }   function coloTriangle(){ this.color=’red’; }   coloTriangle.prototype=triangle; let color=new coloTriangle(); Object.defineProperty(color,’auto’,{ value:’auto’ }) let symbolProp=Symbol(‘symbol’); color[symbolProp]=’symbol’ /** * Reflect.ownKeys:Object.getOwnPropertyNames(target).concat(Object.getOwnPropertySymbols) *None of them come from inheritance. They are all own *It can be traversed regardless of enumeration or not *You can also get the symbol type attribute */ Reflect.ownKeys(color) //[“color”,”auto”,Symbol(symbol)] […]

  • “serve”: ” node_modules/.bin/vue-cli-service serve –open”


    In the Vue cli3 project, start with this configuration “serve”: “node –max_old_space_size=4096 node_modules/.bin/vue-cli-service serve –open”, “build”: “node –max_old_space_size=4096 node_modules/.bin/vue-cli-service build –open”, It is recognized in MAC and Linux, but not in windows? Just change the command or add another line manually to avoid affecting others”dev”: “vue-cli-service serve”Some people get up by NPM run dev,Some people […]

  • The tar command under Linux is decompressed to the specified directory


    Unzip the tar command under Linux to the specified directory: #tar zxvf xx.tar.gz -C /xx//Put the xx.tar.gz Unzip it to / XX / if the directory / XX existsThis is a little different from the CP command. If the CP command does not exist, the directory will be created automatically!  

  • Interviewing a 31 year old IOS developer touched me a little. Where should programmers over 30 go?


    preface Recently HR gave me a resume. I just saw my resume at the age of 31? I’m a little surprised. In fact, development tends to be younger now. Most of them are post-90s and post-95s. After all, software development is not like hardware development. The higher the age, the more popular it is. 31 […]

  • Promise and Reduce


    Promise organization code Promise Ajax version promise, to solve the problem of asynchronous. ajax1().then(ajax2).then(ajax3).then(()=>{}) Comments: it always makes people feel that promise exists for Ajax Some people cleverly encapsulate promise on the pop-up components. //Callback mode Alert (‘are you sure you want to delete this data ‘, () = >{ console.log (‘deleted successfully’) },()=>{ console.log […]

  • Unknown character set: ‘GBK’ application exception caused by database migration


    https://blog.csdn.net/u013415591/article/details/82692242https://blog.csdn.net/gx_1_11_real/article/details/81066336 There is no such problem before the migration, but there is no lower after the migration_ case_ table_ Names plus, MySQL is a bit pretentious, strictly case sensitive…12:08:19,494 [ERROR]-[com.alibaba.druid.filter.logging.Log4jFilter statementLogError 152]-{conn-10088, pstmt-169279} execute error. SELECT t.region_id, t.region_name, t.region_name_en, t.region_code2, t.region_code3 FROM t_region t WHERE t.is_black = 0 AND t.parent_id = ? order by t.sort_order, […]

  • wx-all


    I learned a lot of code when I was learning this part. It’s a little bit to write on it one by one~~~ Directly deploy the code to the place where the code should be, ha ha ha ha This is the URL. It’s much better to put the code on it. I’m not afraid […]

  • Is the code displayed inaccurately when querying version differences?


    Please see the screenshot~ The code of red border is deleted by me, and the code of blue border is changed according to SVN~This should be determined by SVN judgment. It seems strange to me, although the result is the same~

  • Virtual box copy virtual machine


    Accustomed toVMchangeBOXIt’s a little different, like copying I used it.2A network card, so it looks like it’s been a hassle AnnotatedUUID There should be a better way to operate it. The following seems a little wordy. First, we can make do with it like this…   1Turn off 2Copy       3, change name, […]