Android Chapter 2 reading and writing local files

  The first way to read and write: Use the initial IO mode to read and write to the application package directory package com.example.login; import java.io.BufferedReader; import java.io.File; import java.io.FileInputStream; import java.io.FileOutputStream; import java.io.InputStreamReader; import java.util.HashMap; impor ...

Posted by theblacksheep on Fri, 27 Dec 2019 07:33:24 -0800

js as sliding menu

First of all, let's have an effect picture: Secondly, summarize the following points to be noted: The whole code needs to be written in the window.onload event, because the html element can only be obtained after the page is loaded, otherwise an error will be reported; After the event is registered, the index of lis[i] an ...

Posted by Smifffy on Wed, 25 Dec 2019 11:09:44 -0800

Java Serial 65-A Preliminary Study of Custom Manual Throwing Exceptions, Exception Ranges of Subclasses, Arrays

1. Manually throw an exception 1. Custom invalid name exception: (1) Compile-time exceptions, inheriting Exception directly (2) Runtime exceptions, inheriting RuntimeException directly Example: Note: throws throws an exception up, if it runs to the top, that is, to the main main method, don't throw it anymore, use try...catch.... To print it ou ...

Posted by sethi_kapil on Wed, 25 Dec 2019 11:03:50 -0800

3D model intersection and supplement of WebGL

Constructive Solid Geometry has many practical applications. It is used in the case of simple geometric objects, or where mathematical accuracy is very important. Almost all engineering CAD software packages use CSG (which can be used to represent cutting tools and the features that parts must fit together). CSG is the abbreviation of Construct ...

Posted by GoncaloF on Wed, 25 Dec 2019 10:26:49 -0800

Applet development -- override HalfScreenDialog and getPhoneNumber buttons

Using HalfScreenDialog, you can make the pop-up window below. Here I give you a hint of the authorized mobile phone number. HalfScreenDialog documentation https://developers.weixin.qq.com/miniprogram/dev/extended/weui/half-screen-dialog.html Introducing HalfScreenDialog Download components Rewrite HalfScreenDialog Because of the setting of ...

Posted by daveoliveruk on Tue, 24 Dec 2019 06:04:42 -0800

Several configuration methods of entities in entityframework core

Use data annotation Entity classes usually add attribute annotation directly to entity classes in the Models directory, such as [Required]/[Key] using System.ComponentModel.DataAnnotations; public class User() { [Key] public string UserId { get; set; } [Required] public string UserName { get; set; } } Override configuration m ...

Posted by louis567 on Mon, 23 Dec 2019 13:41:03 -0800

vue mobile top navigation component

Needless to say, here is my own vue mobile top navigation component to share with you, dynamic binding background color, font color, and fallback icon. Take what you need and put it in the project HTML <template> <div class="appraisalTooBar" :style="{background:bgColor, opacity:bgOpacity}"> <div class="lef ...

Posted by dgny06 on Mon, 23 Dec 2019 12:34:35 -0800

[UWP] occupy title block

1. Preface Every application with ideal UWP will make the idea of title block, especially when Microsoft provides Extend Acrylic to the title block After this function, most of Windows 10's native applications are not obedient, occupying one mu and three Fen of the title bar. This blog will show you how to customize the title block in UWP. 2. ...

Posted by JD-AM on Mon, 23 Dec 2019 02:24:09 -0800

A week of Vue proficiency

new Vue (el, data, methods, computed, filters, components, life cycle functions) el: Mount page elements data: data methods: Define Functions computed: Calculate Attributes This defines a method but is typically called as a variable This method loop, which is more efficient than the methods of methods, is called each time and there wil ...

Posted by lindm on Sun, 22 Dec 2019 18:34:53 -0800

jqGrid remains selected when using multiselect to turn pages

Usage scenario: the id of the selected row in the jqGrid table needs to be added to the form, while the table needs to turn pages because of too much data, but the selected row disappears every time the checkbox is selected to turn pages and then turn back. So it is necessary to keep the checkbox selected before turning the p ...

Posted by dennisjade on Sun, 22 Dec 2019 15:09:29 -0800