hello.js

前端基础-HTML的的标签详解

谁都会走 提交于 2021-02-19 04:02:05
阅读目录 一、head内常用标签 二、 HTML语义化 三、 字符实体 四、 h系列标签 五、 p标签 六、 img标签 七、 a标签 八、 列表标签 九、 table标签 十、 form标签 一、 head内常用标签 1、meta相关 #1、指定字符集 <meta charset="gbk"> #2、页面描述 <meta name="Description" content="具体描述。。。"> #3、关键字:有助于搜索引擎SEC优化,再怎么优化也抵不过竞价排名 <meta name="Keywords" content="网易,邮箱,游戏,新闻"> #4、3秒后跳转 <meta http-equiv="refresh" content="3,http://www.baidu.com"> #5、三秒刷新 <meta http-equiv="refresh" content="3"> 2、非meta标签 #1、标题 <title>百度一下,你就知道</title> #2、网站的图标 <link rel="icon" href="https://www.baidu.com/favicon.ico"> #3、定义内部样式 <style></style> #4、引入外部样式文件 <link rel="stylesheet" href="mystyle.css"> #5

GraphQL入门

廉价感情. 提交于 2021-02-12 18:50:07
mkdir graphqljs cd graphqljs npm init npm install --save graphql touch hello.js 编辑hello.js var { graphql, buildSchema } = require('graphql'); var schema = buildSchema(` type Query{ hello:String }`); var root = { hello: () => 'Hello world!' }; graphql(schema, '{hello}', root).then((response) => { console.log(response); }) 运行代码 node hello 来源: oschina 链接: https://my.oschina.net/u/579683/blog/1845114

课程3_Spring Boot前端静态页面和资源路径配置

三世轮回 提交于 2020-08-14 06:57:08
Spring Boot 静态页面路径 Spring boot的环境搭建和项目创建前一章节已经讲过,这一章节就直接在上一章创建的项目中学习如果生成页面。 Spring boot的静态页面的根路径规定在src/main/resources下的public文件夹下,里面可创建子文件夹,文件格式是html后缀。访问时直接用html后缀访问。 首先要显示纯静态html页面,在项目的src/main/resources下创建public文件夹,在public下创建一个hello.html页面。 [ 例3-1] hello.html <!doctype html> <html lang="en"> <head> <meta charset="UTF-8"> <title>第1个静态页面</title> </head> <body> spring boot的第1个静态页面 </body> </html> 图3-1 public下创建第1个静态页面 Src/main/java/com.example.demo/HelloApplication.java上右键→Run As→Java Application,运行后访问: http://localhost:8080/hello.html 图3-2 第1个静态页面 3.2 Spring Boot资源路径 Html中需要引入css、js、图片等资源

JavaScript基础语法--乐字节Java

最后都变了- 提交于 2020-08-10 09:12:27
JavaScript基础语法 主要内容 JavaScript 简介 ​ JavaScript 是一种具有面向对象能力的、解释型的程序设计语言。更具体一点,它是基于对象和事件驱动并具有相对安全性的客户端脚本语言。它的主要目的是,验证发往服务器端的数据、增加 Web 互动、加强用户体验度等。 JavaScript 的组成 ​ ECMAScript定义的只是这门语言的基础,与Web浏览器没有依赖关系,而在基础语法上可以构建更完善的脚本语言。JavaScript的运行需要一定的环境,脱离了环境JavaScript代码是不能运行的,JavaScript只能够寄生在某个具体的环境中才能够工作。JavaScript运行环境一般都由宿主环境和执行期环境共同构成,其中宿主环境是由外壳程序生成的,如Web浏览器就是一个外壳程序,它提供了 一个可控制浏览器窗口的宿主环境。执行期环境则由嵌入到外壳程序中的JavaScript引擎(或称为JavaScript解释器)生成,在这个环境中 JavaScript能够生成内置静态对象,初始化执行环境等。 ​ Web浏览器自定义的DOM组件,以面向对象方式描述的文档模型。DOM定义了表示和修改 文档 所需的对象、这些对象的行为和属性以及这些对象之间的关系。DOM对象,是我们用传统的方法(javascript)获得的对象。DOM属于浏览器

HelloJS + Cordova: Trouble with redirect_uri

我怕爱的太早我们不能终老 提交于 2019-12-24 14:22:55
问题 I'm having some trouble using HelloJS with the Google+ API. It has been running nicely using a local development server, but when I try using it wrapped in a Cordova application, I'm getting an error. Within the Google Development Console I've created a client id for web applications. The settings have been set as below; On my phone I get a 400 Error "Invalid parameter for redirect_uri: Missing authority: file:///android_asset/www/index.html" Any suggestions on how to solve this? 回答1:

Hello.js and LINKEDIN [closed]

烂漫一生 提交于 2019-12-14 03:36:43
问题 Closed. This question is off-topic. It is not currently accepting answers. Want to improve this question? Update the question so it's on-topic for Stack Overflow. Closed 4 years ago . i'm using with success hello.js to create a mix of client/server autentification. Unfortunately, when using Linkedin as a network, which should be in "OAuth2: Implicit Grant" which means, no need to share the SECRET KEY on client side, this is not working and i receive an error from auth-server.herokuapp.com/

Facebook oauth login not returning email

早过忘川 提交于 2019-12-11 19:24:37
问题 I am using this plugin for oauth login, here is my FB response while doing aouth login: {"state":"","access_token":"XYZ","expires_in":5110943,"client_id":"CLIENT ID","network":"facebook","display":"popup","redirect_uri":"http://localhost/XYZ123/www/callback.html","scope":"email,basic","expires":1439628780.389}} The problem is i am not getting email of user. As per other SO solutions : I have verified email so that should not be a matter. I am not getting FB message regrading verifying email.

How to validate Microsoft Graph API jwt access_token and secure your API?

Deadly 提交于 2019-12-04 02:29:20
问题 Scenario: I have an angular5 client application, which uses hello.js to authenticate users using their office 365 credentials. Client Code: hello.init({ msft: { id: configuration.AppID, oauth: { version: 2, auth: 'https://login.microsoftonline.com/' + configuration.TenantID + '/oauth2/v2.0/authorize' }, scope_delim: ' ', form: false }, }, { redirect_uri: configuration.redirecturl } ); } login() { hello('msft').login({ scope: 'User.Read People.Read', display: 'popup' }) .then((authData: any) =

How to validate Microsoft Graph API jwt access_token and secure your API?

心已入冬 提交于 2019-12-01 13:56:49
Scenario: I have an angular5 client application, which uses hello.js to authenticate users using their office 365 credentials. Client Code: hello.init({ msft: { id: configuration.AppID, oauth: { version: 2, auth: 'https://login.microsoftonline.com/' + configuration.TenantID + '/oauth2/v2.0/authorize' }, scope_delim: ' ', form: false }, }, { redirect_uri: configuration.redirecturl } ); } login() { hello('msft').login({ scope: 'User.Read People.Read', display: 'popup' }) .then((authData: any) => { // console.log(authData); this.zone.run(() => { // get profile } A successful response is

How do client-side JS libraries for OAuth2 maintain secure authentication?

寵の児 提交于 2019-11-28 17:06:44
问题 I'm new to OAuth2 and there's a problem I've been struggling with and despite research still can't grasp. The difficulty in having a JS client for OAuth2 is that you can't store the client secret, because it will be widely accessible in the browser. I.e. in this SO question the highest-rated comment says: "I think tokenSecret and consumerSekret parameters are supposed to be secret! How could they remain secret when downloaded to browser?!!!" Therefore how do client-side OAuth2 frameworks like