<Additional information about your API call. Try to use verbs that match both request type (fetching vs modifying) and plurality (one vs multiple).>
-
URL
<The URL Structure (path only, no root url)>
-
Method:
| #add 'node_modules' to .gitignore file | |
| git rm -r --cached node_modules | |
| git commit -m 'Remove the now ignored directory node_modules' | |
| git push origin master |
| var crypto = require("crypto") | |
| function encrypt(key, data) { | |
| var cipher = crypto.createCipher('aes-256-cbc', key); | |
| var crypted = cipher.update(text, 'utf-8', 'hex'); | |
| crypted += cipher.final('hex'); | |
| return crypted; | |
| } |
| version: '2' | |
| services: | |
| mongo1: | |
| container_name: mongo1 | |
| image: daocloud.io/mongo | |
| ports: | |
| - 27017:27017 | |
| expose: | |
| - 27017 | |
| networks: |
| /** | |
| * 获取url参数值 | |
| * @param {string} url 需要获取参数的url | |
| * @param {string} name 需要获取的参数名 | |
| * @return {string} 返回获取的参数名 | |
| */ | |
| var getUrlParam = function(name, url){ | |
| if(!name){ | |
| return ''; | |
| } |