你要?jiǎng)h什么???
simplexml_load_string是simplexml擴(kuò)展的函數(shù),請(qǐng)安裝該擴(kuò)展
因?yàn)镴DBC沒(méi)有這種類型,所以你必須自己去實(shí)現(xiàn)Hibernate的UserType接口,自己實(shí)現(xiàn)這個(gè)映射綁定。
Grails的postgresql插件了解一下?它的源碼可以做參考,實(shí)現(xiàn)了postgresql的jsonb類型和array類型。
這個(gè)插件基本支持了postgresql的各種數(shù)據(jù)類型,是通過(guò)自己定義UserType搞定的,源碼在這個(gè)包下面: https://github.com/kaleidos/g...
{
test: /\.less$/,
exclude: /node_modules/,
use: ExtractTextPlugin.extract({
use: [{
loader: 'css-loader',
options: {
importLoaders: 1,
modules: true,
namedExport: true,
camelCase: true,
minimize: true,
localIdentName: '[path][name]__[local]--[hash:base64:5]',
},
}, {
loader: 'postcss-loader',
options: {
ident: 'postcss',
sourceMap: true,
plugins: loader => [
require('postcss-import')(),
require('autoprefixer')({
browsers: ['last 15 versions'],
}),
],
},
},
{
loader: 'less-loader',
options: {
javascriptEnabled: true,
modifyVars: themeVariables,
},
}],
fallback: 'style-loader',
}),
},
{
test: /\.less$/,
exclude: /src/,
use: ExtractTextPlugin.extract({
use: [{
loader: 'css-loader',
options: {
importLoaders: 1,
},
}, {
loader: 'postcss-loader',
options: {
ident: 'postcss',
sourceMap: true,
plugins: loader => [
require('postcss-import')(),
require('autoprefixer')({
browsers: ['last 15 versions'],
}),
],
},
},
{
loader: 'less-loader',
options: {
javascriptEnabled: true,
modifyVars: themeVariables,
},
}],
fallback: 'style-loader',
}),
},
css module 的時(shí)候排除 node module
-v src:/dist
這里的src相對(duì)路徑,對(duì)應(yīng)/var/lib/docker/volumes/src目錄
9月份沒(méi)有來(lái)搜索,目前已用webpack+vue開(kāi)發(fā)過(guò)兩個(gè)擴(kuò)展(純練手,已上線),沒(méi)什么太大問(wèn)題,如果已解決,可忽略,如果未解決,可聯(lián)系交流
寫(xiě)了個(gè)小demo,具體判斷你可以自己參考一下
<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8">
<title>JS Bin</title>
<script src="https://cdn.bootcss.com/vue/2.5.13/vue.min.js"></script>
<style>
span{display:inline-block; margin-right:10px; border:1px solid #000;}
span.active{border:1px solid red;}
</style>
</head>
<body>
<div id="app">
<div v-for="(item,index) in list">
{{item.name}}
<div>
<span v-for="(itemB,indexB) in item.datas" @click="check(index,indexB)" :class={'active':itemB.isCheck}>{{itemB.name}} {{itemB.isCheck}}</span>
</div>
</div>
<button @click="submit">打印選擇結(jié)果</button>
</div>
<script>
var app = new Vue({
el:'#app',
data(){
return{
list:[
{name:'財(cái)經(jīng)新聞',datas:[{name:'股票'},{name:'科技'},{name:'產(chǎn)業(yè)'}]},
{name:'熱點(diǎn)聚焦',datas:[{name:'股票'},{name:'科技'},{name:'產(chǎn)業(yè)'}]},
{name:'行業(yè)資訊',datas:[{name:'股票'},{name:'科技'},{name:'產(chǎn)業(yè)'}]},
],
results:{}
}
},
mounted(){
this.list.map((v,i)=>{
v.datas.map((val,index)=>{
this.$set(val,'isCheck',false);
})
});
},
methods:{
check(index,indexB){
let data = !this.list[index].datas[indexB].isCheck
this.$set(this.list[index].datas[indexB],'isCheck',data);
if(data){
if(typeof(this.results[index]) == 'undefined') this.results[index] = [];
this.results[index].push(this.list[index].datas[indexB].name);
}else{
let rIndex = this.results[index].indexOf(this.list[index].datas[indexB].name);
this.results[index].splice(rIndex,1)
}
},
submit(){
this.list.map((v,i)=>{
if(typeof(this.results[i]) == 'undefined'){
this.results[i] = [];
}
})
console.log(this.results)
}
}
})
</script>
</body>
</html>#background_img(@url){
background-image: url('../../../../../static/img/plan/@{url}.png');
}
.sh_no_option{
#background_img('sh_no_click');
&:hover{
#background_img('sh_no_click1')
}
}
這樣試試
問(wèn)題1: 使用 ExtractTextPlugin
問(wèn)題2: 使用 css-loader
問(wèn)題3: 使用 url-loader
這是webpack的基本用法和功能建議多看幾遍文檔并自己做練習(xí)
比如我學(xué)習(xí)webpack的時(shí)候?qū)φ罩?a rel="nofollow noreferrer">指南 為每章創(chuàng)建一個(gè)git分支
https://github.com/mafeifan/w...
了解下SVG的視口縮放,圖一里的視口參數(shù)里可以比較明顯的看到48這個(gè)數(shù)字,個(gè)人覺(jué)得如果寬高用定值的話,會(huì)失去一部分矢量的靈活性。當(dāng)然如果你用SVG插位圖的話,那無(wú)所謂。
chrome-》高級(jí)-》代理設(shè)置-》Lan設(shè)置 看看是不是設(shè)置了代理ip
頁(yè)面路徑放哪了 ?webinf下?
用 initWithCustomView: custom是定制,
你用的 initWithBarButtonSystemItem System是系統(tǒng)的。
1.直接添加樣式
title={<div style={{textAlign:"center"}}>Card title</div>}
2.通過(guò)headStyle設(shè)置樣式
headStyle={{textAlign:"center"}}
問(wèn)題描述的不是很清楚
如果你想做的事情是: 當(dāng)前端傳入的數(shù)據(jù)為空字符串時(shí),在查詢時(shí)不對(duì)此字段做限制,只對(duì)前端傳了非空的字段進(jìn)行限制的話, mongodb的find方法是需要傳一個(gè)給定值的,傳空字符串 會(huì)匹配此字段為空的記錄, 你需要在執(zhí)行db查詢操作之前,
在nodejs代碼中判斷字符串是否為空,然后再執(zhí)行查詢語(yǔ)句。
不知是否幫到你,可以留言讓我進(jìn)一步了解你的問(wèn)題。
補(bǔ)充回答:
以nodejs的express框架action請(qǐng)求為例:
const mongoClient = require('mongodb').MongoClient;
module.exports.get = function (req, res, next) {
let queryEmail = req.query.email;
mongoClient.connect(url, function (err, db) {
if (err) throw error;
let col = db.collection('your_collection');
if (typeof queryEmail === 'string' && queryEmail.length === 0) {
col.find({}).toArray(function (err, list) {
if (err) throw error;
res.json({
data: list
});
});
}
else {
col.find({ email: queryEmail }).toArray(function (err, list) {
if (err) throw error;
res.json({
data: list
});
});
}
});
}
以上代碼只是幫你打個(gè)樣,僅對(duì)于email這一個(gè)字段的查詢, 當(dāng)輸入為空字符串時(shí),直接將查詢條件設(shè)為了空對(duì)象,因此不對(duì)任何字段做限制輸出查詢結(jié)果;如果email字段里有貨,則在查詢條件中限制email字段必須符合輸入值。
有問(wèn)題請(qǐng)回復(fù)。
可以使用Promise.all,如果不支持ES6,可以模擬Promise.all
function allAjax(arr,callback){
var count = 0,month = [];
arr.map(function(item,i){
$.ajax({
...
success:function(data){
month.push({
month:item,
data:data
})
},
complete: function(){
count ++ ;
if(count==arr.length){
callback && callback(month)
}
}
})
})
}
var arr = [1,2,3]
allAjax(arr,function(month){
console.log(month)
})<script type="text/javascript">
var a = [1, 2, 3, 4, 5, [6, 2, 3, 4]];
function copyarr(obj) {
var j = [];
for(var i = 0; i < obj.length; i++) {
if(typeof obj[i] == 'object') {
j = j.concat(copyarr(obj[i]));//[6, 2, 3, 4]
} else {
j[i] = obj[i];
}
}
return j;
}
var j = copyarr(a);
console.log(j) //
</script>
這樣的話就會(huì)結(jié)果就是原數(shù)組app.use(express.static("./dist/static"));
這樣才對(duì)吧
最簡(jiǎn)單搞網(wǎng)頁(yè)直播,成熟建議方案是ffmeg+rtmp。
官網(wǎng)的肯定是靠不住的,可以使用七牛的靜態(tài)CDN服務(wù):
https://www.staticfile.org
還有另一個(gè),也很推薦(一直在用):
http://www.bootcdn.cn
搜你想要的weui就行
北大青鳥(niǎo)APTECH成立于1999年。依托北京大學(xué)優(yōu)質(zhì)雄厚的教育資源和背景,秉承“教育改變生活”的發(fā)展理念,致力于培養(yǎng)中國(guó)IT技能型緊缺人才,是大數(shù)據(jù)專業(yè)的國(guó)家
達(dá)內(nèi)教育集團(tuán)成立于2002年,是一家由留學(xué)海歸創(chuàng)辦的高端職業(yè)教育培訓(xùn)機(jī)構(gòu),是中國(guó)一站式人才培養(yǎng)平臺(tái)、一站式人才輸送平臺(tái)。2014年4月3日在美國(guó)成功上市,融資1
北大課工場(chǎng)是北京大學(xué)校辦產(chǎn)業(yè)為響應(yīng)國(guó)家深化產(chǎn)教融合/校企合作的政策,積極推進(jìn)“中國(guó)制造2025”,實(shí)現(xiàn)中華民族偉大復(fù)興的升級(jí)產(chǎn)業(yè)鏈。利用北京大學(xué)優(yōu)質(zhì)教育資源及背
博為峰,中國(guó)職業(yè)人才培訓(xùn)領(lǐng)域的先行者
曾工作于聯(lián)想擔(dān)任系統(tǒng)開(kāi)發(fā)工程師,曾在博彥科技股份有限公司擔(dān)任項(xiàng)目經(jīng)理從事移動(dòng)互聯(lián)網(wǎng)管理及研發(fā)工作,曾創(chuàng)辦藍(lán)懿科技有限責(zé)任公司從事總經(jīng)理職務(wù)負(fù)責(zé)iOS教學(xué)及管理工作。
浪潮集團(tuán)項(xiàng)目經(jīng)理。精通Java與.NET 技術(shù), 熟練的跨平臺(tái)面向?qū)ο箝_(kāi)發(fā)經(jīng)驗(yàn),技術(shù)功底深厚。 授課風(fēng)格 授課風(fēng)格清新自然、條理清晰、主次分明、重點(diǎn)難點(diǎn)突出、引人入勝。
精通HTML5和CSS3;Javascript及主流js庫(kù),具有快速界面開(kāi)發(fā)的能力,對(duì)瀏覽器兼容性、前端性能優(yōu)化等有深入理解。精通網(wǎng)頁(yè)制作和網(wǎng)頁(yè)游戲開(kāi)發(fā)。
具有10 年的Java 企業(yè)應(yīng)用開(kāi)發(fā)經(jīng)驗(yàn)。曾經(jīng)歷任德國(guó)Software AG 技術(shù)顧問(wèn),美國(guó)Dachieve 系統(tǒng)架構(gòu)師,美國(guó)AngelEngineers Inc. 系統(tǒng)架構(gòu)師。