This file contains 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
$ npm config set proxy http://server:port | |
$ npm config set https-proxy http://server:port | |
$ npm config set proxy http://username:password@server:port | |
$ npm config set https-proxy http://username:pawword@server:port |
This file contains 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
输出HTML代码(包含标签):直接输出, | |
string html = "<font color='red'>文本</font>"; @html | |
输出HTML内容(不包含标签):有两种方法, | |
第一种: | |
IHtmlString html=new HtmlString("<font color='red'>文本</font>");@html ; | |
第二种: | |
string html = "<font color='red'>文本</font>"; @Html.Raw(html); |
This file contains 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
if (typeof yourFunctionName == 'function') { | |
yourFunctionName(); | |
} |
This file contains 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
<?xml version="1.0" encoding="utf-8"?> | |
<s:Application xmlns:fx="http://ns.adobe.com/mxml/2009" | |
xmlns:s="library://ns.adobe.com/flex/spark" | |
xmlns:mx="library://ns.adobe.com/flex/mx" width="400" height="300"> | |
<fx:Declarations> | |
<!-- Place non-visual elements (e.g., services, value objects) here --> | |
</fx:Declarations> | |
<s:HGroup width="100%" height="100%"> | |
<s:Group width="50%" height="100%"> | |
<s:Rect width="100%" height="100%" |
This file contains 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
using System; | |
using System.Collections.Generic; | |
class Program | |
{ | |
static void Main() | |
{ | |
List<int> a = new List<int>(); | |
a.Add(1); | |
a.Add(2); |
This file contains 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
trackbar是整个的条 | |
<?xml version=”1.0″ encoding=”utf-8″?> | |
<s:SparkSkin xmlns:fx=”http://ns.adobe.com/mxml/2009″ xmlns:s=”library://ns.adobe.com/flex/spark” | |
minHeight=”13″ > | |
<fx:Script> | |
override protected function initializationComplete():void | |
{ |
This file contains 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
<html> | |
<head> | |
<script type="text/javascript" language="javascript"> | |
function check() { | |
var email = document.getElementById("in").value; | |
if (/^\w+([-+.]\w+)*@\w+([-.]\w+)*\.\w+([-.]\w+)*$/.test(email)){ | |
document.getElementById("div1").innerHTML = "valid"; | |
}else{ | |
document.getElementById("div1").innerHTML = "invalid"; | |
} |
This file contains 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
public class unzip extends Activity { | |
/** Called when the activity is first created. */ | |
static final int BUFFER = 2048; | |
TextView textView; | |
@Override | |
public void onCreate(Bundle savedInstanceState) { | |
textView = new TextView(this); |
This file contains 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 un; | |
> console.log(un); | |
undefined | |
> var nu = null; | |
> console.log(nu); | |
null | |
> typeof un | |
'undefined' | |
> typeof nu | |
'object' |
OlderNewer