forked from jackieli123723/JavaScript.Utilities
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathuserDataDemo.aspx
More file actions
27 lines (25 loc) · 879 Bytes
/
userDataDemo.aspx
File metadata and controls
27 lines (25 loc) · 879 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
<%@ Page Language="C#" AutoEventWireup="true" CodeBehind="userDataDemo.aspx.cs" Inherits="YanZhiwei.JavaScript.Utilities.userDataTest" %>
<!DOCTYPE html>
<html xmlns="http://www.w3.org/1999/xhtml">
<head runat="server">
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title>userData Demo</title>
<script src=/proxy/https/github.com/JavaScriptExample/JavaScript.Utilities/blob/master/YanZhiwei.JavaScript.Utilities/"userData.js" type="text/javascript"></script>
<script type="text/javascript">
function save() {
userData.save('yanzhiwei', 'test');
}
function load() {
alert(userData.load('yanzhiwei'));
}
</script>
</head>
<body>
<form id="form1" runat="server">
<div>
<input id="Button1" type="button" value="save" onclick="save()" />
<input id="Button2" type="button" value="load" onclick="load()" />
</div>
</form>
</body>
</html>