This file contains hidden or 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
function getQueryStringArgs(){ | |
// 取得查询字符串,并去掉开头的问号 | |
var qs = (location.search.length > 0 ? location.search.substring(1) : “”), | |
// 用于保存数据对象 | |
args = {}, | |
// 取得每一项 | |
items = qs.length ? qs.split(“&”) : [], |
This file contains hidden or 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
angular.module('exampleApp', [ | |
'exampleApp.Controllers', | |
'exampleApp.Filters', | |
'exampleApp.Services', | |
'exampleApp.Directives' | |
]); |
This file contains hidden or 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
<!DOCTYPE html> | |
<html> | |
<head lang="en"> | |
<meta charset="UTF-8"> | |
<title>Bootstrap 3 Responsive Design Tutorial</title> | |
<meta name="viewport" content="width=device-width, initial-scale=1"> | |
<link rel="stylesheet" href="../bower_components/bootstrap/dist/css/bootstrap.min.css"> | |
<link rel="stylesheet" href="styles/style.css"> | |
</head> |
This file contains hidden or 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
$(document).ready(function() { | |
var parseApplicationId = "XbBMwuGt3JYTCV5FMb5g35RbM2hYEuidQBGi0SCa"; | |
var parseJavaScriptKey = "Cna6YP1oqG1ZdprY5bXBl2cdIv3T11e6Fna6bmkU"; | |
Parse.initialize(parseApplicationId, parseJavaScriptKey); | |
var Test = Parse.Object.extend("Test"); | |
var test = new Test(); | |
test.save({name: "John", text:"hi"}, { |
This file contains hidden or 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
// DOM element | |
var modelImageArr = $('#model-image-list div img'); | |
var tooltipPanel = $('#tooltip-panel'); | |
// Event binding | |
modelImageArr.on('mouseover', modelImageOverHandler) | |
.on('mouseout', modelImageOutHandler); | |
tooltipPanel.on('mouseover', tooltipOverHandler) | |
.on('mouseout', tooltipOutHandler); |
NewerOlder